Look through how it works on test server ( not what you want, but can help to understand )
PHP Code:
case CS_TEAM_T:
{
if(is_user_alive(id)) {
ColorChat(0, RED,"%s^x04[%s]^x01: %s",nick,g_Rang[i],chat);
}
else if(!is_user_alive(id)) {
ColorChat(0, RED,"*DEAD* %s ^x04[%s]^x01: %s",nick,g_Rang[i],chat);
}
}
case CS_TEAM_CT:
{
if(is_user_alive(id)) {
ColorChat(0, BLUE,"%s^x04[%s]^x01: %s",nick,g_Rang[i],chat);
}
else if(!is_user_alive(id)) {
ColorChat(0, BLUE,"*DEAD* %s ^x04[%s]^x01: %s",nick,g_Rang[i],chat);
}
}
case CS_TEAM_SPECTATOR:
{
ColorChat(0, GREY,"*SPEC* %s ^x04[%s]^x01: %s",nick,g_Rang[i],chat);
}