When i do some command's mta in localchat , doesnt work
Like /reconnect or /nick
Anyone help ?
Here is my script
function localMessage(thePlayer, cmd, ...)
local message = table.concat({ ... }, " ")
local name = getPlayerName(thePlayer)
local r, g, b = getPlayerNametagColor(thePlayer)
local hex = string.format("#%.2X%.2X%.2X", r, g, b) -- converts R, G, B to HEX value
outputChatBox("(Local) "..hex..name..": #ffffff"..message, getRootElement(), 255, 255, 0, true)
end
addCommandHandler("Local", localMessage)