maskatchi Posted July 11, 2011 Share Posted July 11, 2011 make a script for admins only? i want this script: function nametagColorChange ( thePlayer, commandName, r, g, b ) setPlayerNametagColor ( thePlayer, r, g, b ) end addCommandHandler ( "nametagcolor", nametagColorChange ) for admins only...would I change it in ACL? cause I have tried that and nothing happens... Link to comment
ishinam Posted July 11, 2011 Share Posted July 11, 2011 l function nametagColorChange ( thePlayer, commandName, r, g, b ) if hasObjectPermissionTo ( thePlayer, "command.kick", true ) then setPlayerNametagColor ( thePlayer, r, g, b ) end end addCommandHandler ( "nametagcolor", nametagColorChange ) Link to comment
maskatchi Posted July 11, 2011 Author Share Posted July 11, 2011 l function nametagColorChange ( thePlayer, commandName, r, g, b ) if hasObjectPermissionTo ( thePlayer, "command.kick", true ) then setPlayerNametagColor ( thePlayer, r, g, b ) end end addCommandHandler ( "nametagcolor", nametagColorChange ) thanks 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