TTT Score Board and Chat Rank Tags

Hello, I’m wondering how I could make it so when a player presses tab, if they look next to an players name it will say Admin, Mod, Guest etc…
I would also like to know how to do the same thing but for chat, E.G Head Admin | GlenSH: Hi

Thanks in advanced

~GlenSH

You could overwrite GM:PlayerChat() [i think that’s the right hook] and pass the arguments with the tag before the message.

[editline]21st January 2013[/editline]

As for the scoreboard, you could do something like this:
[lua]local function GetThatRank(ply)
if ply:IsUserGroup(“mod”) then return “Moderator”
else return “Guest”
end
end[/lua]

then in the scoreboard, instead of displaying the player’s name, display GetThatRank(ply)…ply:Name()

Obviously that will only work for the “mod” user-group, and wouldn’t work with every admin mod.