Evolve chat tags

Hi i was wondering how to make evovle chat tags i cant seem to get them to work. thanks

**[Chat.AddText

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Chat.AddText)**

Example:
[lua]chat.AddText(Color(0,0,0),"[EVOLVE]", Color(255,0,0),“Player”…v:Nick()…“has been banned!”)[/lua]

should make it print [EVOLVE] (in black text) Player (player name) has been banned! (in green text)

Don’t worry if it’s printed in red instead of green, that’s supposed to happen.

( RGB = Red Green Blue )

I think he means like



hook.Add("PlayerSay","AdminTag",function(ply, text, team)
if(ply:IsAdmin() and !ply:IsSuperAdmin()) then
return "(Admin) "..ply:Nick()..": "..text;
end
end


That wouldn’t work if I’m not mistaken, it would print:

Carmine:(Admin) Carmine: test

you have to use Chat.AddText() like c-unit said.

[lua]if (SERVER) then
AddCSLuaFile(“autorun/tags.lua”)
else
function Insert( pl, msg )
local tab = {}
if pl:EV_IsSuperAdmin() then
table.insert( tab, Color( 255, 0, 0, 255 ) )
table.insert( tab, "(Admin) " )
table.insert( tab, Color( 255, 255, 255, 255 ) )
table.insert( tab, pl )
table.insert( tab, ": " )
table.insert( tab, msg )
elseif pl:EV_IsAdmin() then
table.insert( tab, Color( 0, 35, 175, 255 ) )
table.insert( tab, "(Mod) " )
table.insert( tab, Color( 255, 255, 255, 255 ) )
table.insert( tab, pl )
table.insert( tab, ": " )
table.insert( tab, msg )
else
table.insert( tab, Color( 0, 185, 35, 255 ) )
table.insert( tab, "(Guest) " )
table.insert( tab, Color( 255, 255, 255, 255 ) )
table.insert( tab, pl )
table.insert( tab, ": " )
table.insert( tab, msg )
end
table.insert( tab, Color( 125, 125, 125, 255 ) )
chat.AddText( unpack(tab) )
return true
end
end
end
hook.Add(“OnPlayerChat”, “InsertTags”, Insert)[/lua]

I love you times infinity <3 :smiley:

remove the os.date things