Jump to content

mint3d

Members
  • Posts

    425
  • Joined

  • Last visited

Everything posted by mint3d

  1. dosent work and i lost all guns and ammo
  2. so like setAccountData ( account, "save-team".. , getPlayerTeam ( source ) )
  3. i am new please help
  4. oh so like setAccountData ( account, "save-team".. slot, getPedTeamName ( source, slot ) ) and local team = getAccountData ( account, "save-team".. slot )
  5. how do i define them then
  6. what do you mean or how to i make it get team name
  7. it dosent save the team
  8. ok i have a script but when i die is dosent save my guns or my team 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 ) end
  9. mint3d

    gates

    it worked ty guys again
  10. mint3d

    gates

    could i use this gate1= createObject ( 980, 134.39999389648, 1941.5, 21.10000038147, 0, 0, 0 ) gatecol = createColCircle ( 134.39999389648, 1941.5, 21.10000038147, 8 ) function opengates(thePlayer) if ( getTeamName(getPlayerTeam(thePlayer)) == "ArmedForces" ) then moveObject (gate1, 5000, 145.89999389648, 1941.5, 21.10000038147 ) end end addEventHandler( "onColShapeHit", gatecol, opengates ) function closegates(thePlayer) if ( getTeamName(getPlayerTeam(thePlayer)) == "ArmedForces" ) then moveObject (gate1, 5000, 134.39999389648, 1941.5, 21.10000038147 ) end end addEventHandler( "onColShapeLeave", gatecol, closegates )
  11. mint3d

    gates

    What do i need to make moving gates
  12. mint3d

    Ranks

    oh ok i thought i had to use new function ty
  13. mint3d

    Ranks

    Sorry but i added this and not work function addEventHandler ( "onPlayerLogin", getRootElement(), function ( _, account ) if isObjectInACLGroup ( "user.".. getAccountName ( account ), aclGetGroup ( "Moderator" ) ) then setElementData ( source, "Ranks", "New Staff" ) end end )
  14. mint3d

    Ranks

    ok i reconnect and works ty
  15. mint3d

    Ranks

    still nothing
  16. mint3d

    Ranks

    No i have Ranks in tab but i cant see the "Owner" bit i added the ranks bit also exports.scoreboard:scoreboardAddColumn("Ranks") function setACL(player) local Owner = "Owner" if isObjectInACLGroup ( "user." ..getAccountName(getPlayerAccount(player)) , aclGetGroup ( "Admin" ) ) then setElementData ( player, "ACL", Owner ) outputChatBox( Owner ) end end function timer() setTimer( setACL, 1000, 1, source ) end addEventHandler("onPlayerLogin", getRootElement(), timer) addEventHandler("onPlayerJoin", getRootElement(), timer)
  17. mint3d

    Ranks

    ok i have made ranks but when i look at tab there is Ranks but it dont say like Owner function setACL(player) local Owner = "Owner" if isObjectInACLGroup ( "user." ..getAccountTeam(getPlayerAccount(player)) , aclGetGroup ( "Admin" ) ) then setElementData ( player, "ACL", admin ) end end function timer() setTimer( setACL, 1000, 1, source ) end addEventHandler("onPlayerLogin", getRootElement(), timer) addEventHandler("onPlayerJoin", getRootElement(), timer)
  18. mint3d

    GUI help

    Ok the script works but how do i make it so its only for SWAT
  19. mint3d

    GUI help

    Still nothing i see marker but no gui
  20. mint3d

    GUI help

    It dosent work
  21. mint3d

    GUI help

    ok i deleted that line and nothing still
  22. mint3d

    GUI help

    so what will i do
  23. mint3d

    GUI help

    nothing still
  24. mint3d

    GUI help

    lets say both are f ok and dosent work
×
×
  • Create New...