words = {}
SQLS3D = { qury = executeSQLQuery }
chatTime = {}
lastChatMessage = {}
addEventHandler("onPlayerChat", getRootElement(),
function(text, msgtype, thePlayer)
local account = getAccountName(getPlayerAccount(source))
local name = getPlayerName(source)
local root = getRootElement()
local name = getPlayerName(source)
local r,g,b = getPlayerNametagColor(source)
local Account1 = getPlayerAccount ( source )
lastChatMessage[source] = text
local r, g, b = getPlayerNametagColor(source)
cancelEvent()
if isObjectInACLGroup("user." .. account, aclGetGroup("Console")) then
cancelEvent(true)
outputChatBox("#FFD700" .. name .." #FFD700[TODOS]: " .. text, root, 255, 255, 255, true)
outputServerLog("CHAT: " .. name .. ": " .. text)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Admin")) then
cancelEvent(true)
outputChatBox("#FFFFFF" .. name .." #FFFFFF[TODOS]: "..text, root, 255, 255, 255, true)
outputServerLog("CHAT: " .. name .. ": " .. text)
elseif isObjectInACLGroup("user." .. account, aclGetGroup("Everyone")) then
cancelEvent(true)
outputChatBox("#FFFFFF" .. name .." #FFFFFF[TODOS]: "..text, root, 255, 255, 255, true)
outputServerLog("CHAT: " .. name .. ": " .. text)
end
end
)
quero adicionar esta função aí