Jump to content

[HELP] set Player ACL Group


Recommended Posts

addCommandHandler('setskin',function(source,_,player,skinid)
    local find = findPlayer( player ) 
    if find then
           local playerAccount = getPlayerAccount(source)
           local accName = getAccountName ( playerAccount )
         if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then       
               setElementModel ( find, skinid )
               outputChatBox("[Pirate-Gaming]Your skin was changed to "..skinid.." by the admin "..accName.."!", find)
        else
            outputChatBox("You are not allowed to use this command!", source, 255,0,0)
        end
      else
      outputChatBox("Player not found!", source, 255,0,0)
    end
 end) 

 

Edited by Galactix
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...