[Snippet] Simple censor function!

Started by ., Mar 12, 2015, 04:38 PM

Previous topic - Next topic

KAKAN

oh no

EK.IceFlake

@Doom_Killer
this better
function onPlayerChat( player, text )
{
    local r_string = Censor( text );
    ClientMessageToAll( format( "%s: [#FFFFFF]%s", player.Name, r_string ), player.Color.r, player.Color.g, player.Color.b );
    return 0;
}
this will allow for team colors in chat.