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. Read again what I wrote on my first post, it'll be easier for you to do it .
  7. Castillo

    Ranks

    You're welcome.
  8. Castillo

    Ranks

    That's wrong, just use "elseif" on the same function.
  9. You can bind it when they enter on a vehicle ( onVehicleEnter ) and unbind it when they exit ( onVehicleExit ).
  10. If you can't read the script, you can't edit it, how do you expect to fix it?
  11. 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 )
  12. I don't see how are you going to edit it then.
  13. Castillo

    zombie

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

    zombie

    Create a radar area around it and set the "zombieProof" element data to true.
  16. Try debugging your code, see what "walk" returns at playerLogin function.
  17. You are trying to make a function which sets the next map at race?
  18. Yes, why wouldn't you be able to do so?
  19. Yes, that was what I though.
  20. 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.
  21. Si, tenes que darle derechos en el acl.
  22. No existe ningun recurso sobre eso.
×
×
  • Create New...