Jump to content

iMr.3a[Z]eF

Members
  • Posts

    862
  • Joined

  • Last visited

Everything posted by iMr.3a[Z]eF

  1. no I just edited the team name and the position client.lua local theMarker = createMarker ( 2289.99, 581.85, 10.2, 'cylinder', 2.0, 255, 0, 0, 150 ) addEventHandler('onClientMarkerHit',theMarker, function ( hit ) if hit = localPlayer then if getPlayerTeam ( hit ) and not isPedInVehicle ( hit ) then if getTeamName ( getPlayerTeam ( hit ) ) == 'Team1' then setElementPosition( hit , 2250.1647949219, 586.35363769531, 66562461853 ) outputChatBox ( 'SET POS DONE!' ) end end end end,false ) The team name didnt changed -.-
  2. answer my question did you added some codes in client.lua? because maybe that why it didnt set position
  3. isa did you added some codes in client.lua?
  4. You just edited it. So, what's the problem Fahad i think the problem is from him.
  5. he said its client edit the meta to this
  6. Try iFahad's code If didnt works too capture the screen of the tap Panel that i sure you are in the team.
  7. dont forget to change "yourTeam" to the team you want and dont forget to be in the team
  8. No more post about this problem again . I really don't know about the others But this is happens to me every time.
  9. Make a cylinder marker then tell me what is a bug
  10. the marker have a bug try this: -- #! Server Side Marker = createMarker ( -2596.625, 579.358, 15.626 - 1, 'cylinder', 2.0, 255, 0, 0, 150 ) function setPosition(player) local PlayerTeam = getPlayerTeam ( player ) local TeamN = getTeamFromName ( "TeamName" ) if isElementWithinMarker ( player, Marker ) then if PlayerTeam == TeamN then setElementPosition ( player, 2287.78320, 607.99255, 10.82031 ) end end end addEventHandler("onMarkerHit",Marker, setPosition) Would you like to tell us the bug? the bug is in the cylinder i dont mean Castillo's code is wrong i say the marker have a bug in MTA all the bug is when you put position for the marker and Cylinder then you'll get the marker is up of the ground so i added like this Marker = createMarker ( -2596.625, 579.358, 15.626 - 1, 'cylinder', 2.0, 255, 0, 0, 150 ) Minus one is mean in this code that the marker will be a little under. so it will attach with the ground
  11. the marker have a bug try this: -- #! Server Side Marker = createMarker ( -2596.625, 579.358, 15.626 - 1, 'cylinder', 2.0, 255, 0, 0, 150 ) function setPosition(player) local PlayerTeam = getPlayerTeam ( player ) local TeamN = getTeamFromName ( "TeamName" ) if isElementWithinMarker ( player, Marker ) then if PlayerTeam == TeamN then setElementPosition ( player, 2287.78320, 607.99255, 10.82031 ) end end end addEventHandler("onMarkerHit",Marker, setPosition)
  12. hahaha i forget it why you didnt told me the bug local marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 0, 0, 170 ) addEventHandler( "onMarkerHit", marker, function ( player ) if getElementType(player) == "player" then local PlayerTeam = getPlayerTeam ( player ) local Team = getTeamFromName ( "staff" ) if playerTeam == Team then outputChatBox ( "* welcome Staff ", player, 255, 0, 0) else killPed(player) end end end )
  13. do you want to set the vehicle position next to the player
  14. if you mean you want to color the nametag setPlayerNametagColor
  15. i'm Really cunfused i can't help you with maps sorry i hope anyone can help you.
  16. In other words, the whole codes are 100% errors
  17. Also you missed end for the function "moveToDM" and you put two events for the function "moveToDM2" and you put end under the event "onClientGuiClick"
  18. Replace this setElementData (player,"gamemode","[gamemodes]/[race]/race", true) with this setElementData (localPlayer,"gamemode","[gamemodes]/[race]/race", true)
  19. no, i asked about your gamemod with the team and all codes
  20. post the gamemod here and use LUA syntax. use this [lua]-- your code here[*/lua] Delelte the * and write the code between the parentheses.
  21. write the gamemod and use LUA syntax box that i read carefully without mistakes
×
×
  • Create New...