Jump to content

how would I...


Recommended Posts

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... :shock:

Link to comment

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...