05.09.2011, 00:19
pawn Код:
stock FixPlayerColors()
{
for( new i = 0; i < MAX_PLAYERS; i++) // foreach(Player, i)
{
if ( ! IsPlayerConnected( i ) ) continue;
switch ( team[i] ) // or your team identifier
{
case team_red: // or your red team identifier
{
SetPlayerColor( i , 0xFF0000FF );
}
case team_blue: // or your blue team identifier
{
SetPlayerColor( i , 0x0000FFFF );
}
}
}
return true;
}