SetPlayerMarkerForPlayer
#1

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

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
Reply
#3

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

You dont want anyone to see markers on the map?

Incase, use ShowPlayerMarkers

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

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.
Reply
#6

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

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)