17.05.2014, 11:05
pawn Код:
public OnPlayerSpawn(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++) //foreach is better
{
if(!IsPlayerConnected(i)) continue;
SetPlayerMarkerForPlayer(playerid, i, (GetPlayerColor(i) & ((GetPlayerTeam(i) == GetPlayerTeam(playerid)) ? (0x000000FF) : (0xFFFFFF00))));
SetPlayerMarkerForPlayer(i, playerid, (GetPlayerColor(playerid) & ((GetPlayerTeam(playerid) == GetPlayerTeam(i)) ? (0x000000FF) : (0xFFFFFF00))));
}
return 1;
}