addCommandHandler( "an", function ( source, cmd, ... )
local message2 = #{...} > 0 and table.concat({...}," ") or nil
if message2 then
for _, p in ipairs (getElementsByType("player")) do
if hasObjectPermissionTo(p, "command.mute", true) then
outputChatBox("#ffffff[ #696969 Anônimo #ffffff] "..getPlayerName(source).."#696969 - "..message2, p, 255, 255, 255, true)
else
outputChatBox("#ffffff[ #696969 Anônimo #ffffff] #696969 - "..message2, p, 255, 255, 255, true)
end
end
else
outputChatBox( "[/"..cmd.."]: Digite uma mensagem!", source, 230, 20, 20 )
end
end )