pa3ck Posted July 6, 2017 Posted July 6, 2017 (edited) function adminuzi(thePlayer, commandName, ...) outputDebugString("function is working P1") for group, serverGroupName in pairs( names ) do if group then outputDebugString("P2") if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup( group )) then outputDebugString("P3 - acl valid") message = table.concat({...}, " ") groupName = names[group] outputChatBox("#0088FF[SUPERFUN-Rangos]#d8001f "..groupName.." "..getFixedName(thePlayer)..": "..message,root,0,0,0,true) end end end end addCommandHandler("asay", adminuzi) Try that Edited July 6, 2017 by pa3ck 1
keymetaphore Posted July 6, 2017 Posted July 6, 2017 13 minutes ago, 50cent said: Yeah, but with 'root' flood again the message Remove the player loop. It's not needed.
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