Players on Mini-map
#1

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? -.-
Reply
#2

What do you mean by doesn't work? It's still showing for a long distance?
Reply
#3

It doesnt show any player on mini-map.
Reply
#4

You try like this

Quote:

LimitPlayerMarkerRadius(50.0);
ShowPlayerMarkers(2);

Reply
#5

Still not working.. -.-
Reply
#6

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);
Reply
#7

PHP код:
ShowPlayerMarkers(PLAYER_MARKERS_MODE_STREAMED); 
Reply
#8

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);

Reply
#9

LimitPlayerMarkerRadius(50.0);
ShowPlayerMarkers(PLAYER_MARKERS_MODE_STREAMED);

This is how i have. Still not working .. -.- Hate this.
Reply
#10

Dude, use Michael B's method!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)