[HELP] Player color - 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: [HELP] Player color (
/showthread.php?tid=191836)
[HELP] Player color -
Pooh7 - 20.11.2010
Hi
I want to set player color but that player be invisible on the radar.
When player is colored, you can to see him on radar like colored dot.
So, I want to set player color but to remove colored dot on radar...
How to do this?
Re: [HELP] Player color -
Austin - 20.11.2010
The hex value is 0xBBGGRRTT
Blue, Green, Red, Transparency.
Transparency of 00 means invisible, transparency of FF means solid.
Re: [HELP] Player color -
rs.pect - 20.11.2010
If you want to make player invisible on radar, use this function:
pawn Код:
stock togglePlayerMapIconVisibility(playerid,bool:visible){ //written by DracoBlue
SetPlayerColor(playerid, (GetPlayerColor(playerid) | 0xFF) - (visible ? 0x00 : 0xFF));
}
with this, you don't need to save anything to arrays / PVars.
Re: [HELP] Player color -
Pooh7 - 20.11.2010
Thank you