How i edit this code:
PHP Code:
fnGreenChat(plr, const message[], {Float,Sql,Result,_}:...)
{
static msg[192];
msg[0] = 0x04;
vformat(msg[1], 190, message, 3);
if( plr > 0 && plr <= 32 )
{
message_begin(MSG_ONE, gMsgSayText, {0, 0, 0}, plr);
write_byte(plr);
write_string(msg);
message_end();
}
else if( plr == 0 )
{
for( new i = 1; i <= gMaxPlayers; i++ )
{
if( !is_user_connected(i) )
{
continue;
}
message_begin(MSG_ONE, gMsgSayText, {0, 0, 0}, i);
write_byte(i);
write_string(msg);
message_end();
}
}
return 1;
}
new szName[32];
get_user_name(plr, szName, 32);
fnGreenChat(0, "[BCM] %s die.", szName);
How i make the chat change, if the player is T set his name to red,the bcm to white and the rest,to black...
If the player are CT the same, but his name blue color...
THX and sorry about my english.