09.11.2014, 00:24
I am not sure what's wrong but try this:
pawn Код:
new pTeam = GetPlayerTeam(playerid);
for(new i =0; i < MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerTeam(i) == pTeam)
{
SetPlayerMarkerForPlayer(playerid, i, (GetPlayerColor(i) & 0xFFFFFF00));
SetPlayerMarkerForPlayer(i, playerid, (GetPlayerColor(playerid) & 0xFFFFFF00));
}
else
{
SetPlayerMarkerForPlayer(playerid, i, GetPlayerColor(playerid));
SetPlayerMarkerForPlayer(i, playerid, GetPlayerColor(i));
}
}
}