[lua]function globalMessage(thePlayer, cmd, ...)
local message = table.concat ( { ... }, " " )
local name = getPlayerName(thePlayer)
outputChatBox("#FFFFFF"..name..": #aaaaaa"..message, getRootElement(), 255, 255, 255, true)
end
addCommandHandler("genel", globalMessage)
function Tags (mensaje, tipo)
local cuenta = getAccountName(getPlayerAccount(source))
local nombre = getPlayerName(source)
if isObjectInACLGroup("user."..cuenta, aclGetGroup("Admin")) then
cancelEvent()
local r, g, b = getPlayerNametagColor(source)
outputChatBox("#FF0000[Admin] "..nombre..": #00FF00"..mensaje, getRootElement(), r, g, b, true)
outputServerLog("[Admin] "..nombre..": "..mensaje)
elseif isObjectInACLGroup("user."..cuenta, aclGetGroup("SuperModerator")) then
cancelEvent()
local r, g, b = getPlayerNametagColor(source)
outputChatBox("#FF0000[SuperModerator] "..nombre..": #00FF00"..mensaje, getRootElement(), r, g, b, true)
outputServerLog("[SuperModerator] "..nombre..": "..mensaje)
elseif isObjectInACLGroup("user."..cuenta, aclGetGroup("Moderator")) then
cancelEvent()
local r, g, b = getPlayerNametagColor(source)
outputChatBox("#FF0000[Moderator] "..nombre..": #00FF00"..mensaje, getRootElement(), r, g, b, true)
... |