SA-MP Forums Archive
SetPlayerMarkerForPlayer - 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: SetPlayerMarkerForPlayer (/showthread.php?tid=466082)



SetPlayerMarkerForPlayer - Blackazur - 25.09.2013

Heyho, how can i make that you can't see from a player the marker on the minimap, give me a example please because on the wiki it says that the color turn white but i just want that it go invisible.


Re: SetPlayerMarkerForPlayer - RedWolfX - 25.09.2013

SetPlayerMarkerforPlayer

You can see it clearly at the wiki page.

Quote:
color New color. Set the alpha to 00 for an invisible blip.

Код:
SetPlayerMarkerForPlayer( PLAYERID, 0, 00 );
Hope it helps


AW: SetPlayerMarkerForPlayer - Blackazur - 25.09.2013

but that with the 0 isn't this just that other players can't see the player with id 0 on the map?


Re: SetPlayerMarkerForPlayer - RedWolfX - 25.09.2013

You dont want anyone to see markers on the map?

Incase, use ShowPlayerMarkers

Код:
ShowPlayerMarkers(0);
Not really sure what you mean


Re: SetPlayerMarkerForPlayer - DanishHaq - 25.09.2013

Take a look at these commands:

pawn Код:
CMD:nickoff(playerid, params[])
{
    for(new i = 0; i < MAX_PLAYERS; i ++)
    {
        SetPlayerMarkerForPlayer(playerid, i, 0xFFFFFF00); // the alpha of 00 hides the marker
        ShowPlayerNameTagForPlayer(playerid, i, false);
    }
    return 1;
}

CMD:nickon(playerid, params[])
{
    for(new i = 0; i < MAX_PLAYERS; i ++)
    {
        SetPlayerMarkerForPlayer(playerid, i, 0xFFFFFFFF); // white colour, change it to what you want to set it back to normal
        ShowPlayerNameTagForPlayer(playerid, i, true);
    }
    return 1;
}
You need to loop all the players online to stop them from viewing a particular player marker. Else, you can do what RedWolfX said and just stop any viewable features of player markers.


Re: SetPlayerMarkerForPlayer - MAFIAWARS - 26.09.2013

Hey Dear, Let me show you an Easier Way Which disappear the Marker of the Player in Minimap.

pawn Код:
public OnGameModeInit()
{
      ShowPlayerMarkers(0);
      return 1;
}



AW: Re: SetPlayerMarkerForPlayer - Blackazur - 27.09.2013

Quote:
Originally Posted by RedWolfX
Посмотреть сообщение
You dont want anyone to see markers on the map?

Incase, use ShowPlayerMarkers

Код:
ShowPlayerMarkers(0);
Not really sure what you mean
the problem is solved but this is really matured, or?
Код HTML:
Diese Beitrдge von dir wurden bewertet
 	Thema	Datum	Kommentar
	SetPlayerMarkerForPlayer	09/26/13 11:29:35	Trying to help, FU
made my day lol anyway thanks for - rep, dude