Shwul Posted June 8, 2013 Share Posted June 8, 2013 Hello,here is my problem. I have a superman script and its working but i need to disable it for other players and make it only for the staff team anyone have an idea about that? Link to comment
Adde Posted June 18, 2013 Share Posted June 18, 2013 Use local accountname = getAccountName(getPlayerAccount(thePlayer)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" )) Link to comment
PaiN^ Posted June 18, 2013 Share Posted June 18, 2013 @Adde : He said for staff team ! @Shwul : Use these functions : getPlayerTeam - getTeamName - getTeamFromName Link to comment
Adde Posted June 18, 2013 Share Posted June 18, 2013 @Adde :He said for staff team ! @Shwul : Use these functions : getPlayerTeam - getTeamName - getTeamFromName Oh, I thought for admins bcs I used it like that when I used superman script. if getTeamName ( getPlayerTeam ( getLocalPlayer() ) ) == "Staff" then or if ( getPlayerTeam ( getTeamFromName( "Staff" ) ) ) then should work for him. 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