função adminchat4 ( thePlayer , _ , ...)
mensagem local = table.concat ({ ... }, "" )
if ( isPlayerOnGroup (thePlayer)) then
para _, jogador em ipairs ( getElementsByType ( "player" )) faça
if ( isPlayerOnGroup (player)) then
if getElementData (thePlayer, "ChatGlobal: Delay1" , true ) então
outputChatBox (MensagemFalandoRapidoDemaisGlobal, thePlayer, 255 , 255 , 255 , true ) return end
conta = getAccountName ( getPlayerAccount (thePlayer))
if isObjectInACLGroup ( "user." ..conta, aclGetGroup ( "Console" )) então
outputChatBox ( "# 838b83 @ Anónimo: #ffffff" ..message, player, 255 , 255 , 255 , true )
elseif isObjectInACLGroup ( "user." ..conta, aclGetGroup ( "Admin" )) então
outputChatBox ( "# 838b83 @ Anónimo: #ffffff:" ..message, player, 255 , 255 , 255 , true )
elseif isObjectInACLGroup ( "user." ..conta, aclGetGroup ( "SuperModerator" )) então
outputChatBox ( "# 838b83 @ Anónimo: #ffffff" ..message, player, 255 , 255 , 255 , true )
elseif isObjectInACLGroup ( "user." ..conta, aclGetGroup ( "Moderador" )) então
outputChatBox ( "# 838b83 @ Anónimo: #ffffff" ..message, player, 255 , 255 , 255 , true )
elseif isObjectInACLGroup ( "user." ..conta, aclGetGroup ( "Everyone" )) então
outputChatBox ( "# 838b83 @ Anónimo: #ffffff" ..message, player, 255 , 255 , 255 , true )
fim
fim
fim
fim
setElementData (thePlayer, "ChatGlobal: Delay2" , true )
setTimer (setElementData, 100 , 1 , thePlayer, "ChatGlobal: Delay2" , false )
fim
addCommandHandler (ComandoDoChatGlobal4, adminchat4)