Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if CLIENT then
- old.chat_AddText = old.chat_AddText or chat.AddText
- function chat.AddText(...)
- if playernick.enabled then
- local new = {}
- for key, value in pairs({...}) do
- if type(value) == "Player" then
- table.insert(new, team.GetColor(value:Team()))
- table.insert(new, value:GetName())
- table.insert(new, Color(151,211,255))
- else
- table.insert(new, value)
- end
- end
- return old.chat_AddText(unpack(new))
- end
- return old.chat_AddText(...)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment