Get color
#13

An easier way of writing this, just for piece of mind, is:
pawn Code:
GetPlayerColor(playerid) & (0xFFFFFF00);
This will change the alpha values to '00', hence making it a transparent marker.

Example of its usage:
pawn Code:
SetPlayerColor(playerid, GetPlayerColor(playerid) & (0xFFFFFF00));
This could be used in a command such as /invisible, which would make your map marker invisible to others.

pawn Code:
SetPlayerColor(playerid, GetPlayerColor(playerid) & (0xFFFFFFFF));
This would do the opposite and make the alpha values 'FF', hence your marker being full color and no transparency again. Like a /visible command.
Reply


Messages In This Thread
Get color - by audriuxxx - 26.05.2014, 14:36
Re: Get color - by Riddick94 - 26.05.2014, 14:42
Re: Get color - by Rittik - 26.05.2014, 14:42
Re: Get color - by Riddick94 - 26.05.2014, 14:44
Re: Get color - by audriuxxx - 26.05.2014, 15:14
Re: Get color - by Riddick94 - 26.05.2014, 15:16
Re: Get color - by iFarbod - 26.05.2014, 15:20
Re: Get color - by audriuxxx - 26.05.2014, 15:38
Re: Get color - by Riddick94 - 26.05.2014, 15:48
Re: Get color - by audriuxxx - 26.05.2014, 15:53
Re: Get color - by Konstantinos - 26.05.2014, 16:02
Re: Get color - by audriuxxx - 27.05.2014, 12:31
Re: Get color - by Threshold - 27.05.2014, 13:37
Re: Get color - by audriuxxx - 28.05.2014, 11:32
Re: Get color - by Vince - 28.05.2014, 11:40
Re: Get color - by audriuxxx - 28.05.2014, 11:51
Re: Get color - by RajatPawar - 28.05.2014, 11:52
Re: Get color - by audriuxxx - 28.05.2014, 11:54
Re: Get color - by RajatPawar - 28.05.2014, 11:56
Re: Get color - by audriuxxx - 28.05.2014, 12:07
Re: Get color - by audriuxxx - 28.05.2014, 12:31
Re: Get color - by Threshold - 28.05.2014, 13:03
Re: Get color - by audriuxxx - 28.05.2014, 13:10

Forum Jump:


Users browsing this thread: 2 Guest(s)