SA-MP Forums Archive
Help Icon a Player? - 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: Help Icon a Player? (/showthread.php?tid=624065)



Help Icon a Player? - kloning1 - 10.12.2016

how to remove and bring up the icon player in the minimap?

example :
taxi drivers appear in the minimap
whereas ordinary wagra not appear in the minimap

thanks before

note : picture? not an example



Re: Help Icon a Player? - GoldenLion - 10.12.2016

EDIT: https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
Loop through all the players and make them see the taxi driver's marker. If you want to remove the marker then do the same, but make the color transparent so it will disappear, that's all in the wiki so have a look there.


Re: Help Icon a Player? - kloning1 - 10.12.2016

thnks dude, i will try it


Re: Help Icon a Player? - GoldenLion - 10.12.2016

I updated my post because the stuff I told you was wrong, I confused something.


Re: Help Icon a Player? - kloning1 - 10.12.2016

okey dud, i think so, u comment for add a some icon in the minimap, not player icon

btw thanks, i will try it


Re: Help Icon a Player? - Freaksken - 10.12.2016

You can just use SetPlayerColor if you want the marker to be (in)visible globally, no need to use a loop with SetPlayerMarkerForPlayer.
For example: display the taxi drivers for all players on the map.

On a player-per-player basis, SetPlayerMarkerForPlayer is indeed needed.
For example: display the taxi drivers for players 0 to 9 on the map, but not for players 10 to 999.