hide player - 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: hide player (
/showthread.php?tid=319177)
hide player -
MA_proking - 18.02.2012
How can we hide player icon from map so other players can't able to see him on map.
Re: hide player -
iPLEOMAX - 18.02.2012
Quote:
Originally Posted by MA_proking
How can we hide player icon from map so other players can't able to see him on map.
|
pawn Код:
for ( new i_playerid; i_playerid < MAX_PLAYERS; i_playerid++ )
{
SetPlayerMarkerForPlayer(playerid, i_playerid, 0xFFFFFF00);
}
Guess that's it.. Not sure.
Re: hide player -
MA_proking - 18.02.2012
can we able to set this for team. I mean only team mates able to see players other not?
Re: hide player -
iPLEOMAX - 18.02.2012
Quote:
Originally Posted by MA_proking
can we able to set this for team. I mean only team mates able to see players other not?
|
Ofcourse, just change the code a little:
pawn Код:
for ( new i_playerid; i_playerid < MAX_PLAYERS; i_playerid++ )
{
if(gTeam[i_playerid] == gTeam[playerid]) continue;
SetPlayerMarkerForPlayer(playerid, i_playerid, 0xFFFFFF00);
}
Re: hide player -
MA_proking - 18.02.2012
Thanks it works +1 rep for help