SA-MP Forums Archive
2 questions? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 2 questions? (/showthread.php?tid=87199)



2 questions? - ByFukara - 18.07.2009

1-) Is SetPlayerTeam(playerid,0); enable anti team-kill
2-) How can I hide player map icons


Re: 2 questions? - refshal - 18.07.2009

Quote:
Originally Posted by ByFukara
2-) How can I hide player map icons
pawn Код:
ShowPlayerMarkers(false);



Re: 2 questions? - Khelif - 18.07.2009

1)Yes
2)You can use SetPlayerMarkerForPlayer function.

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 );
Transparent color:
Код:
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 ) );