PlayerMarkers
#4

Use a loop with this: SetPlayerMarkerForPlayer
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;
}
^ Code by Lorenc_. Use it under OnPlayerSpawn then.
Reply


Messages In This Thread
PlayerMarkers - by Oh - 18.12.2011, 06:06
Re: PlayerMarkers - by jamesbond007 - 18.12.2011, 06:13
Re: PlayerMarkers - by Oh - 18.12.2011, 06:19
Re: PlayerMarkers - by suhrab_mujeeb - 18.12.2011, 07:37

Forum Jump:


Users browsing this thread: 1 Guest(s)