Jump to content

darhal

Members
  • Posts

    582
  • Joined

  • Last visited

Everything posted by darhal

  1. Nope but becareful next time !
  2. It will work whats the problem but i said he can use getTeamFromName to delte team copy my code and use it like this outside the code eg : deleteTeam('Police')
  3. Omg anubhav why you give him wrong information where is the end of the line 4 function ! His code is correct
  4. You dont understand him !
  5. Its simple function deleteTeam(teamName) for i, team in ipairs(getElementsByType('team') do if getTeamName(team) == teamName then destroyElement(team) end end end also you can use getTeamFromName(teamName)
  6. You should pass the team name as an argument !
  7. Object cant be a weapon you can get 1 weapon for 1 id and not 3 for one id
  8. How you know that a player use x sniper and not y one ?
  9. Use this code server side better !
  10. Well its function(id) and not function(1)
  11. In fact no it will learn you how ? If you need the hole script we will not do it for you so do it yourself or contact a paid scripter if you want ! We will give you functions only that you may use ! In this forum you post your codes and we help
  12. Didi you have the sound
  13. Click on the red text guiCreateButton guiCreateGridList
  14. addEventHandler('onClientPlayerWeaponFire', getLocalPlayer(), function(id) local x, y, z = getPedWeaponMuzzlePosition(source) if id == 22 then local sound = playSound3D('colt45', x, y, z) setSoundMaxDistance(sound, 50) end end)
  15. Delete line 4 and modify line 6 to for i, val in ipairs(players) do past the code that draw the grid
  16. Nope post your new code
  17. if getElementType(source) then any errors ?
  18. Also dont forget to delete line 9 after all
  19. Cant i use phone ! Listen first take the first code that you give it to us second copy my code third past it after line 9 just before table.insert in you first code
  20. No added the part of the code after getPlayerName in the first code after line 9
  21. Sure if i dont help you so what i do ? for i, val in ipairs(players) do if val ~= playerName then table.insert(players, playerName) end end
  22. First loop the table second make sure that the player is not the table using if !
×
×
  • Create New...