Colour help

Hey was wondering about something, how could i add the colour to this chat command?.

function ISaid( ply, text, team, death )
if (string.sub(text, 1, 4) == “/ooc”) then
return “[OOC]”…string.sub( text, 5 );
end
end
hook.Add( “PlayerSay”, “ISaid”, ISaid );

So that OOC is green.

http://wiki.garrysmod.com/?title=Chat.AddText is what you’re looking for.

MIND YOU, chat.AddText is a client function.

However, Overv made a nice chat.AddText function that worked serverside. http://www.facepunch.com/showthread.php?t=768062