SA-MP Forums Archive
how to set a player icon - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to set a player icon (/showthread.php?tid=524921)



how to set a player icon - PiLLoW - 09.07.2014

how i can set my player icon in esc>map and minimap? i want to the MAP is whereever the players in map he visible in map and for the minimap i want to visible near or far


Re: how to set a player icon - Cena44 - 09.07.2014

It's pretty basic, you first need to enable ShowPlayerMarkers, you can either set it to 1(shows all icons on server) or set it to 2(only shows icons of players nearby).

pawn Код:
public OnGameModeInit()
{
    ShowPlayerMarkers(PLAYER_MARKERS_MODE_STREAMED); //Or PLAYER_MARKERS_MODE_GLOBAL(All players)
}