Jump to content

i need a help in my script


Recommended Posts

Posted

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 

Progress In Devloping Games = 95

Progress In Mta Scripting = 40

Progress In Mta Bug Fixing = 96

Progress In Mta Texture Editing = 96

Progress In Editing Script In Mta = 97

Progress In English Language = 100

Progress In Making "The Zombies Destination" Game 85%

|||||||||||||||||||||||||||||||||||||

Posted

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 

Real motorbike backflip / frontflip script: https://forum.mtasa.com/viewtopic.php?f=108&t=98191

Posted

tnx

Progress In Devloping Games = 95

Progress In Mta Scripting = 40

Progress In Mta Bug Fixing = 96

Progress In Mta Texture Editing = 96

Progress In Editing Script In Mta = 97

Progress In English Language = 100

Progress In Making "The Zombies Destination" Game 85%

|||||||||||||||||||||||||||||||||||||

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