Players on Mini-map - 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: Players on Mini-map (
/showthread.php?tid=580305)
Players on Mini-map -
abyss. - 04.07.2015
Since this
https://sampwiki.blast.hk/wiki/LimitPlayerMarkerRadius and this
https://sampwiki.blast.hk/wiki/ShowPlayerMarkers i wanna set the players on map to see only in a certain range. I used this script in ongamemodeinit:
Код:
ShowPlayerMarkers(2);
LimitPlayerMarkerRadius(50.0);
And it doesnt work. Can some1 help me please? -.-
Re: Players on Mini-map -
yeehao98 - 04.07.2015
What do you mean by doesn't work? It's still showing for a long distance?
Re: Players on Mini-map -
abyss. - 04.07.2015
It doesnt show any player on mini-map.
Re: Players on Mini-map -
yeehao98 - 04.07.2015
You try like this
Quote:
LimitPlayerMarkerRadius(50.0);
ShowPlayerMarkers(2);
|
Re: Players on Mini-map -
abyss. - 04.07.2015
Still not working.. -.-
Re: Players on Mini-map -
Sime30 - 04.07.2015
Try using Global with radius. Perhaps Streamed already has it's own distance or something.
Also, make sure their color is not invisible.
pawn Код:
ShowPlayerMarkers(1);
LimitPlayerMarkerRadius(50.0);
Respuesta: Players on Mini-map -
AndreLuiz - 04.07.2015
PHP код:
ShowPlayerMarkers(PLAYER_MARKERS_MODE_STREAMED);
Re: Players on Mini-map -
Michael B - 04.07.2015
Yep, as Sime said, use the following function in order to enable streaming for close players only.
PHP код:
public OnGameModeInit()
{
// Player markers only visible to nearby players
ShowPlayerMarkers(PLAYER_MARKERS_MODE_STREAMED);
}
Re: Players on Mini-map -
abyss. - 04.07.2015
LimitPlayerMarkerRadius(50.0);
ShowPlayerMarkers(PLAYER_MARKERS_MODE_STREAMED);
This is how i have. Still not working .. -.- Hate this.
Re: Players on Mini-map -
Sime30 - 04.07.2015
Dude, use
Michael B's method!