help Invisible players
#4

Quote:
Originally Posted by _Application_
Посмотреть сообщение
Please can complete code
I want players hidden map (Marker)
when they connect, set their color like so:
pawn Код:
//example, blue
SetPlayerColor(playerid,0x0000FF00);
this will make them invincible on the map, but blue in the chat

it's RGBA
Red
Green
Blue
Alpha

also, if you hppen to save the color in the players account file,
you could get that color and bitwise AND it with the negation of 255(0xFF) to keep it for the chat
and still be invincible on the map.
like this, 0x0000FFFF (blue,visible) will become 0x0000FF00 (blue, invincible)
pawn Код:
SetPlayerColor(playerid,(savedColor & ~0xFF));
"savedColor" represents the variable holding the saved color from the account file
Reply


Messages In This Thread
help Invisible players - by _Application_ - 07.12.2014, 10:35
Re: help Invisible players - by Vince - 07.12.2014, 11:01
Re: help Invisible players - by _Application_ - 07.12.2014, 11:31
Re: help Invisible players - by CutX - 07.12.2014, 11:41
Re: help Invisible players - by _Application_ - 07.12.2014, 12:48
Re: help Invisible players - by CutX - 07.12.2014, 12:53
Re: help Invisible players - by _Application_ - 07.12.2014, 13:08
Re: help Invisible players - by _Application_ - 07.12.2014, 15:09

Forum Jump:


Users browsing this thread: 1 Guest(s)