Hi everyone, it's me again . I realized that the change in the files can not be darkrp and found the code and I want to convert what would have been as follows:
[Owner] [OOC] Hero: Hi
[] - white always
OOC - always green
Hero(my nick) - team.GetColor(ply:Team())
[CODE]local Tags =
{
--Group --Tag --Color
{"superadmin", "Owner", Color(255, 0, 0, 255) },
{"admin", "Admin", Color(0, 0, 0, 255) },
{"moderator", "Moderator", Color(255, 0, 0, 255) },
{"vip", "VIP", Color(0, 255, 0, 255) },
{"user", "User", Color(0, 255, 0, 255) }
}
hook.Add("OnPlayerChat", "Tags", function(ply, strText, teamOnly, alive, prefixText)
for k,v in pairs(Tags) do
if ply:IsPlayer() then
if ply:IsUserGroup(v[1]) then
local nickteam = team.GetColor(ply:Team())
local w = Color(255,255,255,255)
chat.AddText(w, "[", v[3], v[2], w, "] ", nickteam, prefixText, w, ": ", w, strText)
return true
end
end
end
end)[/CODE]
[highlight](User was banned for this post ("You were literally JUST banned for posting this exact thread in General! Last chance, see Developer Discussion." - NiandraLades))[/highlight]
Sorry, you need to Log In to post a reply to this thread.