Jump to content

i need a help in my script


Recommended Posts

i need help i want to make more than 1 acl group verification i want it to be staff l1 ,staff l2, staff l3,etc

what to do ?

    if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "Head Staff" ) ) then 

Link to comment

You need to use elseif.

if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "Head Staff" ) ) then 
    -- code here 
elseif isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "staff L2" ) ) then 
    -- code here 
elseif isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "staff L3" ) ) then 
    -- code here 
end 

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