How need hide player name, and map icon
#1

Hi.
How should i hide player name and icon from map? Just make him invisible?
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
https://sampwiki.blast.hk/wiki/SetPlayerColor

Код:
CMD:hideme( playerid ) {
   foreach(new i: Player) {
   SetPlayerMarkerForPlayer( i, playerid, 0xFFFFF00 );
   SendClientMessage(playerid, -1, "You've Been Hidden.");
   }
return 1;
}
Reply
#3

Quote:
Originally Posted by ISmokezU
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
https://sampwiki.blast.hk/wiki/SetPlayerColor

Код:
CMD:hideme( playerid ) {
   foreach(new i: Player) {
   SetPlayerMarkerForPlayer( i, playerid, 0xFFFFF00 );
   SendClientMessage(playerid, -1, "You've Been Hidden.");
   }
return 1;
}
Appreciate
Reply
#4

P.S Will it hide and health, armor bar from the top of names?
Reply
#5

Nope.
Reply
#6

I thinking about this, would it hide?
Код:
ShowPlayerNameTagForPlayer(playerid, i, true);
Reply
#7

Код:
SetPlayerMarkerForPlayer(playerid, showplayerid, color)
That's the color parameter so no. Only alpha values.
Reply
#8

Quote:
Originally Posted by Pokemon64
Посмотреть сообщение
I thinking about this, would it hide?
Код:
ShowPlayerNameTagForPlayer(playerid, i, true);
Change true to false and that should work to get rid of the nametag and health and armor.
Reply
#9

Quote:
Originally Posted by oSAINTo
Посмотреть сообщение
Change true to false and that should work to get rid of the nametag and health and armor.
Yea i did it already
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)