Would anyone be able to help me. I got DarkRP 2.5.
I added the two files, and it works. BUT, it doesn't show either the OOC or Advert Tag.
Would any be able to help me?
// Cleint Side apple :p
local Tags =
{
--Group --Tag --Color
{"vip", "VIP", Color(255, 93, 0, 255) },
{"mod-vip", "Moderator", Color(0, 255, 255, 255) },
{"moderator", "Moderator", Color(0, 255, 255, 255) },
{"admin-vip", "Admin", Color(255, 0, 191, 255) },
{"admin", "Admin", Color(255, 0, 191, 255) },
{"superadmin", "Senior Admin", Color(0, 255, 0, 255) },
{"developer", "Developer", Color(95, 127, 63, 255) },
{"owner", "Owner", Color(255, 0, 0, 255) },
}
hook.Add("OnPlayerChat", "Tags", function(ply, Text, Team, PlayerIsDead)
if ply:IsValid() then
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
end)