server :
 
local chat = 'Local'
local command = 'chat'
addCommandHandler(command,
function(player,_,...)
    if not player then return end
      if isPlayerMuted ( player ) then return outputChatBox('you are muted!',player,255,255,0) end
      local arg = {...}
	  local count = #arg
	  if count < 1 then return outputChatBox('the messeage must be 1 line at least!',player,255,0,0) end
      local string = table.concat( arg, " " )
	  local r,b,g = getPlayerNametagColor(player)
	  if r and b and g then
      outputChatBox ( '('..chat..'): '..string.format("#%.2X%.2X%.2X", r, g, b)..''..string.gsub(getPlayerName(player),'#x%x%x%x%x%x%','')..'#FFFFFF : '..string, root, 255,255,255, true )
      else
      outputChatBox ( '('..chat..'): '..string.gsub(getPlayerName(player),'#x%x%x%x%x%x%','')..' : '..string, root, 255,255,255, true )  
      end
    end)