Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. You can store it as element data when they change it, then get that element data when they quit.
  2. addEventHandler ( "onPlayerWasted", root, function ( ) local account = getPlayerAccount ( source ) if ( account and not isGuestAccount ( account ) ) then for slot = 1, 12 do setAccountData ( account, "save-wep".. slot, getPedWeapon ( source, slot ) ) setAccountData ( account, "save-ammo".. slot, getPedTotalAmmo ( source, slot ) ) end end end ) addEventHandler ( "onPlayerSpawn", root, function ( ) local account = getPlayerAccount ( source ) if ( account and not isGuestAccount ( account ) ) then setElementData ( source, "Role", role ) spawnPlayer ( source, x, y, z, interior, dimension ) setElementHealth ( source, health ) setElementModel ( source, skin ) setPlayerTeam ( source, getTeamFromName(team) ) setPlayerMoney ( source, money ) setPedArmor ( source, armor ) for slot = 1, 12 do local wep = getAccountData ( account, "save-wep".. slot ) local ammo = getAccountData ( account, "save-ammo".. slot ) giveWeapon ( source, wep, ammo ) end end end ) You had an unecessary 'end'.
  3. Se duplica? ese es todo el script que tenes? en moveObject deberias usar "object" y no "Object".
  4. Seems like that function was removed.
  5. Castillo

    gates

    You can also use getElementByID if you want to have the gate object on a map file. And yes, that should work.
  6. What is the server version?
  7. Read again what I wrote on my first post, it'll be easier for you to do it .
  8. Castillo

    Ranks

    You're welcome.
  9. Castillo

    Ranks

    That's wrong, just use "elseif" on the same function.
  10. You're welcome.
  11. You can bind it when they enter on a vehicle ( onVehicleEnter ) and unbind it when they exit ( onVehicleExit ).
  12. If you can't read the script, you can't edit it, how do you expect to fix it?
  13. Castillo

    Ranks

    exports.scoreboard:scoreboardAddColumn ( "Ranks" ) addEventHandler ( "onPlayerLogin", getRootElement(), function ( _, account ) if isObjectInACLGroup ( "user.".. getAccountName ( account ), aclGetGroup ( "Admin" ) ) then setElementData ( source, "Ranks", "Owner" ) end end )
  14. I don't see how are you going to edit it then.
  15. Castillo

    zombie

    Explain what exactly? I told you what you had to do, is really simple to understand. Functions you need: createRadarArea setElementData
  16. Post the map shop part.
  17. Castillo

    zombie

    Create a radar area around it and set the "zombieProof" element data to true.
  18. Try debugging your code, see what "walk" returns at playerLogin function.
  19. You are trying to make a function which sets the next map at race?
  20. Yes, why wouldn't you be able to do so?
  21. Yes, that was what I though.
  22. Ese es el mismo script que te di en el post anterior, para que creas otro con el mismo objetivo? P.D: Ese script no reinicia el recurso, lo inicia nada mas.
  23. Si, tenes que darle derechos en el acl.
  24. No existe ningun recurso sobre eso.
  25. What is the problem with it?
×
×
  • Create New...