Why isnt the chatbox coming out in color.
function adminChat(thePlayer, commandName, text)
local user = "user."..getAccountName ( getPlayerAccount ( thePlayer ) )
local playerName = getPlayerName ( thePlayer )
for id, player in ipairs ( aclGroupListObjects ( aclGetGroup ( "Admin" ) ) or aclGroupListObjects ( aclGetGroup ( "SuperModerator" ) ) ) do
if player == user then
outputChatBox( "#FF0000[#CCCCCCAdmin#FF0000] #FF0000".. playerName.. "#CCCCCC: #FF0000"..text, player, 255, 255, 255, true)
end
end
end
addCommandHandler( "achat", publicChat )
EDIT: matter of fact its not working at all...it just shows it to everyone not to admins only