13.11.2012, 23:41
pawn Код:
public ShowTeamMarkers(playerid)
{
for(new i=0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if(gTeam[playerid] == gTeam[i])
{
SetPlayerMarkerForPlayer( playerid, i, GetPlayerColor(i) );
SetPlayerMarkerForPlayer( i, playerid, GetPlayerColor(playerid) );
}
else
{
SetPlayerMarkerForPlayer( playerid, i, ( GetPlayerColor( i ) & 0xFFFFFF00 ) );
SetPlayerMarkerForPlayer( i, playerid, ( GetPlayerColor( playerid ) & 0xFFFFFF00 ) );
}
}
}
}
It doesnt work though.