19.02.2012, 16:01
Quote:
I have problem but i dont know how to fix it.
Problem is in this:When i type "!Hi" all 2 teams see that message not just 1 team but all teams see that message and i dont know how to fix that! pawn Код:
|
pawn Код:
//
if( (text[0] == '!') && (text[1] != 0) ) {
new
i,
string[256],
team = GetPlayerTeam(playerid)
;
GetPlayerName( playerid, string, MAX_PLAYER_NAME );
format( string, sizeof string, "[Team-Chat] %s: %s", string, text[1] );
for( ; i != MAX_PLAYERS; ++i ) {
if( GetPlayerTeam(i) == team ) {
SendClientMessage( i, yellow, string );
}
}
return 0;
}