18.12.2011, 07:37
Use a loop with this: SetPlayerMarkerForPlayer
Here is an example:
^ Code by Lorenc_. Use it under OnPlayerSpawn then.
Here is an example:
pawn Код:
stock HideTeamMarkers(playerid)
{
for(new x; x < MAX_PLAYERS; x++) if(IsPlayerConnected(x))
{
if(gTeam[x] == gTeam[playerid]) // Change this part the way you like
{
SetPlayerMarkerForPlayer(playerid, x, (GetPlayerColor(x) & 0xFFFFFF00));
SetPlayerMarkerForPlayer(x, playerid, (GetPlayerColor(playerid) & 0xFFFFFF00));
}
}
return 1;
}