I have been playing on some servers and I saw messages in chat with 3 different colours in one line.. and i was wondering how I can do the same? I have tried to modifi colorchat.inc, but without result
like
PHP Code:
ColorChat(id, ColorC:type, const msg[], {Float,Sql,Result,_}:...)
{
static message[256];
switch(type)
{
case NORMAL: // clients scr_concolor cvar color
{
message[0] = 0x01;
}
case GREEN:
{
message[0] = 0x02;
}
case GREY:
{
message[0] = 0x03;
}
case RED:
{ message[0] = 0x04
}
case BLUE:
{
message[0] = 0x05
}
}
I want to write messages with all colours (red,green,blue,grey)..
example: red:
[ normal: server red:] grey: some blue: text green: here