28.09.2015, 13:18
Do it like this when a player chooses his team:
Replace team[x] with your team variable.
Код:
foreach(Player, i) { if(team[i] == team[playerid]) // Checks if they're on the same team // "playerid" being the player that joined the team, and "i" being his teammates that should see him on the radar { SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFFFF); // Marks him on the radar // 0xFFFFFFFF is a white colour, replace it with the color of the team he chose } }