So my last post didnt work so I tryed a new one made by tyguys group chat thing
[CODE]--Chat Tags by Tyguy
CreateClientConVar("chat_tags_color_r", 255, true, false)
CreateClientConVar("chat_tags_color_g", 255, true, false)
CreateClientConVar("chat_tags_color_b", 255, true, false)
CreateClientConVar("chat_tags_color_a", 255, true, false)
local Tags =
{
--Group --Tag --Color
{"admin", "[Admin] ", Color(1, 223, 215, 1) },
{"superadmin", "[Ssuperadmin] ", Color(255, 0, 0, 255) },
{"owner", "[Owner] ", Color(255, 128, 0, 1) },
{"mod", "[Mod] ", Color(0, 255, 0, 1) },
{"t-vip", "[T-VIP ", Color(169, 1, 219, 1) },
{"m-vip", "[M-VIP] ", Color(88, 88, 88, 1) },
{"vip", "[VIP] ", Color(255, 255, 0, 1) },
["user", " ", Color(255, 255, 255, 1) ]
}
hook.Add("OnPlayerChat", "Tags", function(ply, strText, bTeamOnly)
for k,v in pairs(Tags) do
if ply:IsUserGroup(v[1]) then
local R = GetConVarNumber("chat_tags_color_r")
local G = GetConVarNumber("chat_tags_color_g")
local B = GetConVarNumber("chat_tags_color_b")
local A = GetConVarNumber("chat_tags_color_a")
local nickteam = team.GetColor(ply:Team())
if !bTeamOnly then
chat.AddText(v[3], v[2], nickteam, ply:Nick(), color_white, ": ", Color(R, G, B, A), strText)
return true
else
chat.AddText(v[3], v[2], nickteam, "(TEAM) ", ply:Nick(), color_white, ": ", Color(R, G, B, A), strText)
return true
end
end
end
end )[/CODE]
It would be really helpful if someone could help me because they aren't showing up in chat it is just defualt
Also this is in TTT
Sorry, you need to Log In to post a reply to this thread.