View difference between Paste ID: ANCU61Vn and xa3Qaedm
SHOW: | | - or go back to the newest paste.
1
stock ChatGang( playerid, msg[] )
2
{
3
    new
4
        gang = GetPlayerTeam( playerid )
5
    ;
6
7-
    for( new i = 0; i < MAX_PLAYERS; ++i )
7+
    if( gang > -1 && gang < 255 )
8
    {
9-
        if( gang > -1 && gang < 255 )
9+
        for( new i = 0; i < MAX_PLAYERS; ++i )
10
        {
11
            if( GetPlayerTeam( i ) == gang ) SendClientMessage( i, COR_GANG, msg );
12
        }
13
    }
14
    return 1;
15
}