Help with ulx chat tags? (TTT)

Ok when I type when dead in spectator mode it shows it to the hole server like alive people can hear it.


-- v5
-- for yellowish white = 238, 221, 130

if (SERVER) then
AddCSLuaFile( "chat.lua" )
local Tag = ""
local R = 0
local G = 0
local B = 0

function CustomChat_ChatMessage( name, String, bool, R, G, B) -- ChatMessage(rgb, name, rgb2, String)
	umsg.Start( "CustomChat_ChatMsg" )
		umsg.String(name)
		umsg.String(String)
		umsg.String(bool)
		umsg.Long(R)
		umsg.Long(G)
		umsg.Long(B)
	umsg.End()
end

 
concommand.Add( "chat_alert", function( ply, cmd, args )
 
	if args[1] then // We're seeing if there are any arguments, arguments are stored on a table, so you will have to use args[index].
		if ply:IsAdmin() then 
		CustomChat_ChatMessage( "ALERT", "> "..string.gsub(args[1], "_", " "), "" , 255, 0, 0)
		else
		ply:PrintMessage(HUD_PRINTCONSOLE,"You are not Admin")
		Msg("--Player "..ply:Nick().." is not admin and tryed to use alert chat.
")
		end
	end
end )

function CustomChat_Checker( ply, text, teamonly )
		--/*
		if ply:IsUserGroup("mod") then
		Tag = "[Mod]"
		R = 0
		G = 255
		B = 0
		elseif ply:IsUserGroup("vip") then
		Tag = "[Vip]"
		R = 255
		G = 255
		B = 0
		elseif ply:IsUserGroup("superadmin") then 
		Tag = "[SuperAdmin]"
		R = 255
		G = 0
		B = 0
		elseif ply:IsUserGroup("admin") then
		Tag = "[Admin]"
		R = 0
		G = 255
		B = 255
		elseif ply:IsUserGroup("owner") then
		Tag= "[Owner]"
		R = 255
		G = 145
		B = 0
		elseif ply:IsUserGroup("m-vip") then
		Tag = "[MVip]"
		R = 189
		G = 15
		B = 255
		elseif ply:IsUserGroup("t-vip") then
		Tag = "[TVip]"
		R = 77
		G = 83
		B = 85
		elseif ply:IsUserGroup("user") then
		Tag = ""
		R = 255
		G = 255
		B = 255
		end
		--*/
		/*
		if ply:IsSuperAdmin() then 
		Tag = "[Admin]"
		R = 255
		G = 0
		B = 0
		elseif ply:IsAdmin() then
		Tag = "[Mod]"
		R = 0
		G = 206
		B = 209
		elseif ply:IsUserGroup("vip") then
		Tag = "[Vip]"
		R = 0
		G = 0
		B = 255
		else
		Tag = "[User]"
		R = 238
		G = 221
		B = 130
		end
		*/
	CustomChat_ChatMessage(ply:Nick(), "> "..text, Tag, R, G, B)
	return ""
	end
	hook.Add("PlayerSay", "WordCheck", CustomChat_Checker)
------------------------------------------
	else --- client code				--
------------------------------------------
usermessage.Hook("CustomChat_ChatMsg", function( um, ply )
	local name = um:ReadString()
	local String = um:ReadString()
	local Tag = um:ReadString()
	local R = um:ReadLong()
	local G = um:ReadLong()
	local B = um:ReadLong()
    chat.AddText(Color(R, G, B, 255), Tag..name, Color(255, 255, 255, 255), String)
end)	
end