function adminuzi(thePlayer, commandName, ...)
for i,v in pairs(getElementsByType( "player" )) do
for group, serverGroupName in pairs( names ) do
if isGuestAccount( getPlayerAccount( v ) ) then return end
if group then
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup( group ) then
message = table.concat({...}, " ")
groupName = names["group"]
end
end
end
end
outputChatBox("#0088FF["..groupName.."]#d8001f "..getPlayerName(thePlayer)..": "..message,getRootElement(),0,0,0,true)
end
addCommandHandler("asay", adminuzi)
Sometimes working the "asay xy" cmd, sometimes not working. How to fix this bug?