Jump to content

Search the Community

Showing results for tags 'binds'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Member Title


Gang


Location


Occupation


Interests

Found 3 results

  1. Tengo un script de comprar weed , y cuando elimino la weed y luego me acerco al marker a comprar de nuevo no me deja ,me aparece el ultimo mensaje: 'Ya tengo mota' osea que solo puedo comprar una vez y y despues que la elimino no me deja comprar nuevamente. despues la segunda duda es como comprar algo y usarlo un numero de veces, por ejemplo que compre weed o una bebida y que no me dure para siempre, que se acabe y se elimine despues de 4 clics por ejemplo... por ejemplo buyWeed se activa con la H , y con clic derecho startSmokingWeed es para fumar , aunque si no lo elimino con otro comando no se elimina solo, por mas fumadas que le de function buyWeed () local money = getPlayerMoney( source ) if not weed[source] then --if not weed[source] then if money >= 180 then local player = source weed[player] = true -- añadimos la compra a la tabla setPedAnimation( source,"DEALER", "shop_pay") takePlayerMoney(source, 180) animTimers[source] = setTimer(startSmokingWeed,4500,1,source) else outputChatBox( "Vuelve cuando tengas el dinero",source,200,0,0) end else outputChatBox( "Ya tengo mota",source,200,0,0) end end addEvent("buyWeed", true) addEventHandler("buyWeed", root, buyWeed) Esta es la parte del lado del cliente function buyWeed() ---playSound3D("beerbuy.mp3", 496.03125, -76.0400390625, 998.7578125) local isPlayerNearWeedMachine = false; for markerId,markerElement in ipairs (vendingMachineWeedMarker) do if (isElementWithinColShape( localPlayer, markerElement )) and not (isPlayerNearWeedMachine) then isPlayerNearWeedMachine = true; end end if (isPlayerNearWeedMachine) then unbindKey("H","down",buyWeed ) triggerServerEvent( "buyWeed",localPlayer ) end end
  2. hello there, since i joined mta i started with DD but most of players have stronger hits that make me fly i asked one of them he told me binds can i get it and how i can add it to mta please?
  3. local localPlayer = getLocalPlayer() local playerName = getPlayerName(localPlayer) function createLoginWindow() windowLogin = guiCreateWindow(0.3945,0.3646,0.2109,0.2018,"Magyar Play Szerver - Loginpanel by turbesz",true) guiSetSize(windowLogin, 270, 155, false) guiSetAlpha(windowLogin,1) labelUsername = guiCreateLabel(10,52,59,24,"Felh.név:",false,windowLogin) guiSetAlpha(labelUsername,1) guiLabelSetColor(labelUsername,255,255,255) guiLabelSetVerticalAlign(labelUsername,"center") guiLabelSetHorizontalAlign(labelUsername,"left",false) labelPassword = guiCreateLabel(10,86,59,24,"Jelszó:",false,windowLogin) guiSetAlpha(labelPassword,1) guiLabelSetColor(labelPassword,255,255,255) guiLabelSetVerticalAlign(labelPassword,"center") guiLabelSetHorizontalAlign(labelPassword,"left",false) labelInfo = guiCreateLabel(10,26,250,17,"Regizz, és jelentkezz be a játékhoz.",false,windowLogin) guiSetAlpha(labelInfo,1) guiLabelSetColor(labelInfo,255,255,255) guiLabelSetVerticalAlign(labelInfo,"top") guiLabelSetHorizontalAlign(labelInfo,"center",false) guiSetFont(labelInfo,"default-bold-small") editUsername = guiCreateEdit(79,52,181,25,"",false,windowLogin) guiSetAlpha(editUsername,1) guiEditSetMaxLength(editUsername, 50) editPassword = guiCreateEdit(79,86,181,25,"",false,windowLogin) guiSetAlpha(editPassword,1) guiEditSetMasked(editPassword, true) guiEditSetMaxLength(editPassword, 50) buttonLogin = guiCreateButton(10,121,120,21,"Bejelentkezés",false,windowLogin) guiSetAlpha(buttonLogin,1) buttonRegister = guiCreateButton(143,121,117,21,"Regisztrálás",false,windowLogin) guiSetAlpha(buttonRegister,1) guiWindowSetSizable ( windowLogin, false ) guiSetInputMode("no_binds_when_editing") guiSetVisible(windowLogin, false) addEventHandler("onClientGUIClick", buttonLogin, clientSubmitLogin, false) addEventHandler("onClientGUIClick", buttonRegister, clientSubmitRegister, false) end function resourceStart() createLoginWindow() if (windowLogin ~= nil) then guiSetVisible(windowLogin, true) else outputChatBox("Whoops, valami error történt.") end showCursor(true) guiSetInputEnabled(true) guiSetInputMode("no_binds_when_editing") end function clientSubmitLogin(button, state) if button == "left" and state == "up" then local username = guiGetText(editUsername) local password = guiGetText(editPassword) if username and password then triggerServerEvent("submitLogin", getRootElement(), localPlayer, username, password) else guiSetText(labelInfo, "Írj be felh.nevet és jelszót.") end end end function clientSubmitRegister(button, state) if button == "left" and state == "up" then local username = guiGetText(editUsername) local password = guiGetText(editPassword) if username and password then triggerServerEvent("submitRegister", getRootElement(), localPlayer, username, password) else guiSetText(labelInfo, "Írj be felh.nevet és jelszót.") end end end function hideLoginWindow() guiSetInputEnabled(false) guiSetVisible(windowLogin, false) showCursor(false) end function unknownError() guiSetText(labelInfo, "Ismeretlen hiba.") end function loginWrong() guiSetText(labelInfo, "Hibás adatok.") end function registerTaken() guiSetText(labelInfo, "Felhasználó név regisztrálva van.") end guiSetInputMode("no_binds_when_editing") addEvent("hideLoginWindow", true) addEvent("unknownError", true) addEvent("loginWrong", true) addEvent("registerTaken", true) addEventHandler("hideLoginWindow", getRootElement(), hideLoginWindow) addEventHandler("unknownError", getRootElement(), unknownError) addEventHandler("loginWrong", getRootElement(), loginWrong) addEventHandler("registerTaken", getRootElement(), registerTaken) addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), resourceStart) i added one more line this: guiSetInputMode("no_binds_when_editing") but.. binds working when i type my name, and pass, why? how to fix?
×
×
  • Create New...