Jump to content

Skin for admins


Minotaur

Recommended Posts

Hello all i created this script but doesnt work anybody help me please

function isPlayerInACL(player,acl) 
    local account = getAccountName(getPlayerAccount(player)) 
    if(isObjectInACLGroup("user."..account,aclGetGroup(acl))) then 
    setElementModel(thePlayer, 1) 
    outputChatBox("Only Admin Members can take this skin", 0, 255, 0) 
 end 

Link to comment
-- # Server Side : 
addCommandHandler('skin', 
    function ( player ) 
        if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup('Admin')) then 
            setElementModel ( player,1 ) 
        else 
               outputChatBox("Only Admin Members can take this skin",player,255,0,0) 
        end 
    end 
) 

Also i think it's the time to learn scripting .

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