Don't show Markers when people are in a Deathmatch
#1

Hi everyone. Iam trying to disable that the players in a Deatchmatch see each other on the radar
and after that Deathmatch, they see each other.
But I don't now how exactly.
Could someone help me ?
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerMarkerForPlayer
Reply
#3

I now that function but i am sure how to use that function
exactly to do that ...
Reply
#4

Read down the bottom:
Quote:
pawn Код:
// Make player 42 see player 1 as a red marker
SetPlayerMarkerForPlayer( 42,1,0xFF0000FF );
 
// Make the players marker an invisible white (chat will be white but marker will be gone).
SetPlayerMarkerForPlayer( 42, 1, 0xFFFFFF00 );
 
// Make the players marker invisible to the player while keeping chat colour the same. Will only work correctly if SetPlayerColor has been used:
SetPlayerMarkerForPlayer( 42, 1, ( GetPlayerColor( 1 ) & 0xFFFFFF00 ) );
Reply
#5

Yeah I know that function ....
But I don't know how to disable when they are in an Deathmatch
and how to enable the markers when they aren't in an deathmatch
Reply
#6

Код:
  ShowPlayerMarkers(1);
visible
Код:
ShowPlayerMarkers(0);
invisible

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)