Make map icons only appear on mini map when you're close - 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: Make map icons only appear on mini map when you're close (
/showthread.php?tid=532727)
Make map icons only appear on mini map when you're close -
rymax99 - 20.08.2014
Hi,
I'd like some opinions on what the best way to make map icons only appear on the mini map/HUD when you're close/within a distance to them.
Thanks.
Re: Make map icons only appear on mini map when you're close -
Virtual1ty - 20.08.2014
The easiest way would be to use the Streamer plugin, it does this automatically. However, there's also a native way to do it but you cannot "set the range" - well you kinda can but...
See this and use MAPICON_LOCAL for map icon style:
https://sampwiki.blast.hk/wiki/SetPlayerMapIcon
Re: Make map icons only appear on mini map when you're close -
Wizzy951 - 20.08.2014
I've almost never used map icons, but I read
here and I think that you should use style 0.
Код:
0: MAPICON_LOCAL Display in the player's local area
1: MAPICON_GLOBAL Display always
2: MAPICON_LOCAL_CHECKPOINT Display in the player's local area and has a checkpoint marker
3: MAPICON_GLOBAL_CHECKPOINT Display always and has a checkpoint marker