Jacobob14 Posted May 24, 2014 Share Posted May 24, 2014 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) Link to comment
Castillo Posted May 24, 2014 Share Posted May 24, 2014 That doesn't make any sense. Tables aren't defined using brackets ( [ ] ), you must use { }. Link to comment
xXMADEXx Posted May 25, 2014 Share Posted May 25, 2014 That doesn't make any sense.Tables aren't defined using brackets ( [ ] ), you must use { }. Also, table index's are slip using a comma (,), not a semi-colon. groups = { "|USS|", "|BSAA|", "|TwP|" } Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now