SA-MP Forums Archive
How can I turn someone to transparent - 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: How can I turn someone to transparent (/showthread.php?tid=613850)



How can I turn someone to transparent - NeXoR - 01.08.2016

Hello, I am scripting a movie making server and I thought about a command which an Administrator is available to change everyone to transparent on the radar or not
Something like that:
foreach on all players
GetPlayerColor
SetPlayerColor but edit the Hex number from FF to 00

Is that possible ?


Re: How can I turn someone to transparent - Konstantinos - 01.08.2016

https://sampwiki.blast.hk/wiki/Colors_List#Doing_math


Re: How can I turn someone to transparent - AbyssMorgan - 01.08.2016

PHP код:
SetPlayerColor(playerid,GetPlayerColor(playerid) & 0xFFFFFF00); //invisible
SetPlayerColor(playerid,(GetPlayerColor(playerid) & 0xFFFFFF00) + 0xFF); //visible 



Re: How can I turn someone to transparent - Shinja - 01.08.2016

If you want to make all visible or invisible
Use ShowPlayerMarkers(); better than Set color foreach player


Re: How can I turn someone to transparent - NeXoR - 02.08.2016

Thank you all.