homar Posted May 9, 2011 Share Posted May 9, 2011 i'm getting sick from teams script look , i want this autoteams not with tag , but it's will be for admins if you admin you will be removed auto , but aren't work with me correct = createTeam ( Admins, 225, 0, 0 ) function team (player) local theAccount = getPlayerAccount(player) if theAccount then local accountName = getAccountName(theAccount) if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) then setPlayerTeam" class="kw6">setPlayerTeam ( theAccount, correct ) end end end addEventHandler ("onPlayerLogin" team, correct) Link to comment
DakiLLa Posted May 9, 2011 Share Posted May 9, 2011 correct = createTeam ( "Admins", 225, 0, 0 ) function joinTeam( prev, currAcc ) local accountName = getAccountName( currAcc ) if isObjectInACLGroup ( "user." .. accountName, aclGetGroup( "Admin" ) ) then setPlayerTeam( source, correct ) end end addEventHandler( "onPlayerLogin", getRootElement(), joinTeam ) I put the code without highlighting since setPlayerTeam is bugged a bit. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now