local root = getRootElement()
function chatbox(text, msgtype)
local account = getAccountName(getPlayerAccount(source))
local name = getPlayerName(source)
cancelEvent()
if isObjectInACLGroup("user." .. account, aclGetGroup("Administrator")) then
outputChatBox("#ff0000ADMINISTRATOR |#ff6666" .. name .. ":#f7fc00 " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Founder")) then
outputChatBox("#990000✬#000000FOUNDER#990000♫ #ff6666" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Moderator")) then
outputChatBox("#3366ffModerator| #FF0000" .. name .. ":#FFFFFF " .. text, root, 255, 255, 255, true)
end
end
addEventHandler("onPlayerChat", root, chatbox)