pocko Posted February 3, 2011 Share Posted February 3, 2011 Hey i want to ask is it possible to make when admin join in the game can he join into admin group ? i mean on the scoreboard have 2 groups is it possible when admin join to join in Admin Group ? Link to comment
pocko Posted February 4, 2011 Author Share Posted February 4, 2011 hmm can you explain me how ? Link to comment
SDK Posted February 4, 2011 Share Posted February 4, 2011 (edited) quick script addEventHandler("onPlayerLogin", root, function(prev, new) local acc_name = getAccountName ( new ) if isObjectInACLGroup("user." .. acc_name, aclGetGroup ( "Admin" ) ) then setPlayerTeam(source, getTeamFromName("Admin")) end end) Edited February 4, 2011 by Guest 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