How can I turn someone to transparent
#1

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 ?
Reply
#2

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

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

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

Thank you all.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)