maybe that, and maybe definition "Source or thePlayer"
function globalMessage(thePlayer, cmd, ...)
local message = table.concat ( { ... }, " " )
local name = getPlayerName(source)
local r,g,b = getPlayerNametagColor ( source ) -- add
outputChatBox("[Local] "..name..": #ffffff"..message, getRootElement(), r, g, b, true)
end
addCommandHandler("Local", globalMessage)