// Cleint Side apple :p
local Tags =
{
--Group --Tag --Color
{"admin", "Admin", Color(220, 0, 0, 255) },
{"superadmin", "Owner", Color(0, 0, 250, 255) },
{"trusted", "Trusted", Color(255, 255, 0, 255) },
{"operator", "Mod", Color(255, 128, 0, 255) },
{"chicken", "Chicken", Color(155, 128, 0, 255) },
{"fukye", "Bass God", Color(255, 128, 0, 255) },
{"ultimateswaggodoverlordyolo", "Ultimate Swag God Overlord Yolo", Color(0, 0, 0, 255) },
{"thechef", "The Chef", Color(150, 0, 150, 255) },
{"thecaptain", "The Captain", Color(150, 0, 150, 255) },
{"littlebitch", "Little <censor>", Color(255, 0, 150, 255) }
}
hook.Add("OnPlayerChat", "Tags", function(ply, Text, Team, PlayerIsDead)
for k,v in pairs(Tags) do
if ply:IsUserGroup(v[1]) then
if Team then
if ply:Alive() then
chat.AddText(Color(0, 204, 0, 255), "{TEAM} ", v[3], v[2], Color(50, 50, 50, 255), "| ", v[3], ply:Nick(), color_white, ": ", Color(255, 255, 255, 255), Text)
else
chat.AddText(Color(255, 0, 0, 255), "*DEAD*", Color(0, 204, 0, 255), "{TEAM} ", v[3], v[2], Color(50, 50, 50, 255), "| ", v[3], ply:Nick(), color_white, ": ", Color(255, 255, 255, 255), Text)
end
return true
end
if ply:IsPlayer() then
if ply:Alive() then
chat.AddText(Color(255, 0, 0, 255), "", v[3], v[2], Color(50, 50, 50, 255), "| ", v[3], ply:Nick(), color_white, ": ", Color(255, 255, 255, 255), Text)
return true
elseif !ply:Alive() then
chat.AddText(Color(255, 0, 0, 255), "*DEAD* ", v[3], v[2], Color(50, 50, 50, 255), "| ", v[3], ply:Nick(), color_white, ": ", Color(255, 255, 255, 255), Text)
return true
end
end
end
end
end)