No need full code that has lines that are not related to the subject.
PHP Code:
if ( szMsg[ 0 ] != '~' )
return 0;
replace( szMsg, charsmax( szMsg ), "~", "" );
static Players[ 32 ], iNum, iPlayer, szStatus[ 32 ];
get_players( Players, iNum );
formatex( szStatus, charsmax( szStatus ), "*%s*",
(getStatus( client, g_iGang[ client ] ) == STATUS_OWNER) ? "Owner" : (getStatus( client, g_iGang[ client ] ) == STATUS_LEADER) ? "Leader" : "Member" );
for ( new i; i < iNum; i++ )
{
iPlayer = Players[ i ];
if ( g_iGang[ iPlayer ] != g_iGang[ client ] )
continue;
ColorChat( iPlayer, GetTeamColor( cs_get_user_team( client ) ), "^3*^1%s^1[^3 %s ^1] %s^4 %s^1 :^3 %s", is_user_alive( client ) ? " " : "DEAD", aData[ GangName ], szStatus, szName( client ), szMsg );
}
return 1;
}
stock GetTeamColor( CsTeams:iTeam )
{
switch ( iTeam )
{
case CS_TEAM_CT: return BLUE;
case CS_TEAM_T: return RED;
case CS_TEAM_SPECTATOR: return GREY;
}
return GREEN;
}