SA-MP Forums Archive
Players visibility - 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: Players visibility (/showthread.php?tid=443774)



Players visibility - DeMoX - 13.06.2013

Hi all,
After making a class system that includes sniper class, i wanted to make it invisible on map.
So i just set alpha channel on player colors to 00, but i'm pretty sure that it will make this class invisible for the whole team.
I know that i can use foreach include and use it like that

Code:
foreach(Player, i)
{     
     if(gTeam[playerid] != gTeam[i])
     {
	//SetPlayerColor & 00 in alpha channel...etc
     }    
}
But is it the only way? because i already saw some filterscripts that has an invisible class (there's no team variables).

Thanks for your time.


Re: Players visibility - IstuntmanI - 13.06.2013

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

Make it with FF for teammates, and 00 for enemies.


Re: Players visibility - DeMoX - 13.06.2013

Ah, thanks a lot
i have searched for that a lot but i finally found it
that really helped.