Jump to content

HELP pliz


Recommended Posts

Posted

help as I can do so that if someone is in a group acl which are shown in Table function is not fulfilled

groups =[  
"|USS|"; 
"|BSAA|"; 
"|TwP|" 
] 
addEvent("Moderator1",true) 
function Moderator(player, groupname) 
    local account = getPlayerAccount ( player ) 
    local group = aclGetGroup ( "|BSAA|" ) 
    if ( group ) then 
     if (not isObjectInACLGroup("user."..getAccountName(account),aclGetGroup(here groups))) then  
        aclGroupAddObject ( group, "user.".. getAccountName ( account )) 
outputChatBox ( "#ff0000[bSAA]#ffffff El user #a5d9f2^("..getAccountName(getPlayerAccount(player))..")  #ffffff Fue Reclutado al clan ", source, 255, 255 ,255, true) 
else 
outputChatBox ( "error ", source, 255, 255 ,255, true) 
    end 
end 
end 
addEventHandler("Moderator1", getRootElement(), Moderator) 

Posted

That doesn't make any sense.

Tables aren't defined using brackets ( [ ] ), you must use { }.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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