03.05.2012, 08:20
That is example only here is one good example (the one you looking for)
Now you can see your team mate player marker that is if you are pilot.
Modify the stock duplicate it then change the code all credits goes to me
if you didn't set player color the color will be black (as a return) so use SetPlayerColor before testing the stock
pawn Код:
stock ShowPlayerMarkerForPilot(playerid)
{
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i) == 1) {
if(gTeam[playerid] == TEAM_PILOT) {
if(gTeam[i] == TEAM_PILOT) return SetPlayerMarkerForPlayer(i, playerid, GetPlayerColor(playerid));
}
}
}
}
Modify the stock duplicate it then change the code all credits goes to me
if you didn't set player color the color will be black (as a return) so use SetPlayerColor before testing the stock