
mint3d
Members-
Posts
425 -
Joined
-
Last visited
Everything posted by mint3d
-
dosent work and i lost all guns and ammo
-
so like setAccountData ( account, "save-team".. , getPlayerTeam ( source ) )
-
oh so like setAccountData ( account, "save-team".. slot, getPedTeamName ( source, slot ) ) and local team = getAccountData ( account, "save-team".. slot )
-
what do you mean or how to i make it get team name
-
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
-
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 )
-
oh ok i thought i had to use new function ty
-
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 )
-
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)
-
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)
-
Ok the script works but how do i make it so its only for SWAT
-
Still nothing i see marker but no gui
-
ok i deleted that line and nothing still
-
lets say both are f ok and dosent work