Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. Try this, not sure if it will work. local count = dbPoll(dbQuery(SQLconnect, "SELECT * FROM players"),-1) if count and type(count) == 'table' then outputChatBox(#count) end end
  2. createTeam -- Police getPlayerTeam getTeamFromName getPlayerWantedLevel -- =<1 setElementPosition https://wiki.multitheftauto.com/wiki/OnPlayerDamage
  3. guiGetText https://wiki.multitheftauto.com/wiki/OnClientGUIClick
  4. TAPL

    طلب

    https://wiki.multitheftauto.com/wiki/GuiSetVisible https://wiki.multitheftauto.com/wiki/OutputChatBox
  5. https://wiki.multitheftauto.com/wiki/CreateMarker https://wiki.multitheftauto.com/wiki/OnClientMarkerHit https://wiki.multitheftauto.com/wiki/TakePlayerMoney and the label text must be in string. and this wrong addEventHandler("onClientGUIClick",window1button,window1buttonresponse,false) function window1buttonresponse(button,state) if button =="left" and state =="up" then guiSetVisible(window1,false) showCursor(false,false) outputChatBox("Good buy") end end correct addEventHandler("onClientGUIClick",window1button, function (button,state) if button =="left" and state =="up" then guiSetVisible(window1,false) showCursor(false) outputChatBox("Good buy") end) and do the rest yourself We're not going scripting for you We're helping you only.
  6. Money must be integer Not string
  7. TAPL

    Table WTF :P

    you have two same variable name local member = executeSQLQuery("SELECT name FROM Groups_members WHERE groupName = ?",tostring(name)) local member = executeSQLQuery("SELECT name,rank FROM Groups_members WHERE name = ?",tostring(name)) i think do the loop in client is better
  8. you mean the color are white?
  9. hmmmmm i think you need to use setElementHealth from server side
  10. you mean this? https://wiki.multitheftauto.com/wiki/CreateExplosion or this https://wiki.multitheftauto.com/wiki/BlowVehicle
  11. i didn't understand you, can you explain better?
  12. you have to write the type of the file client or server if you didn't it will be server "Guso" type="script" name="Gu" description="My first MTA server" /> change "??" to server or client
  13. TAPL

    Table WTF :P

    i don't see any error you can create it using Query executeSQLQuery("CREATE TABLE IF NOT EXISTS Groups_members (name TEXT, group TEXT, rank TEXT)")
  14. did you type in F8 gostaff ? did you see this in chat (Staff Mode is now on.) ?
  15. what is not work?
  16. need to be in ACL group Admin.
  17. You're Welcome.
  18. function createBarrier(player) if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("FBI")) then local x,y,z = getElementPosition(player) local xR,yR,zR = getElementRotation(player) createObject(3091,x,y,z,xR,yR,zR) end end addCommandHandler("sperre",createBarrier)
  19. button parameter is the name of the mouse button that the GUI element was clicked with, can be left, right, or middle. also resourceRoot may not work try use root if didn't work then show the rest code.
  20. the same thing here viewtopic.php?f=91&t=43342 -_-"
  21. Server side function togglestaffMode(thePlayer) local account = getPlayerAccount(thePlayer) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) if isObjectInACLGroup("user.".. accountName, aclGetGroup("Admin")) then if getElementData(thePlayer,"invincible") then setElementData(thePlayer,"invincible",false) outputChatBox("Staff Mode is now off.",thePlayer,255,255,255) else setElementData(thePlayer,"invincible",true) outputChatBox("Staff Mode is now on.",thePlayer,255,255,255) end end end addCommandHandler("gostaff",togglestaffMode) Client Side addEventHandler("onClientPlayerDamage",localPlayer, function(attacker) if getElementData(source,"invincible") then setElementHealth(attacker,getElementHealth(attacker)-10) cancelEvent() end end)
  22. But when i die i leav team you maybe spawn your self without team https://wiki.multitheftauto.com/wiki/SpawnPlayer or you are set the player to nil team using event onPlayerWasted You have to take a look at your resource anyway what GameMode are you using?
  23. TAPL

    Pickpocketing

    /debugscript 3 ?
×
×
  • Create New...