Transparent colors on radar
#1

I want still using
Код:
ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
To show only admins in map to all...

But to do it i need this colors transparents on map radar:
Код:
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_COP 0x6666CCFF
#define COLOR_GN 0x800080FF
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_PARAMEDIC 0x006400FF
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_DARKORANGE 0xFF8C00FF
#define COLOR_RED 0xFF0000FF
#define COLOR_DARKGRAY 0x696969AA
Someone could help me?
Reply
#2

Change the last two digits to 0 on all of them. You can do that in the definition, or with the help of this function, or both: https://sampwiki.blast.hk/wiki/Colors_List#Doing_math
Reply
#3

Ty +rep
But its not work fine

this COLOR_YELLOW is somthing like LIGHT PINK
this orange is something like purple

I wanted the normal colors but transparent in map

Код:
#define COLOR_WHITE_INV 0xFFFFFFAA00
#define COLOR_COP_INV 0x6666CCFF00
#define COLOR_GN_INV 0x800080FF00
#define COLOR_WHITE_INV 0xFFFFFFAA00
#define COLOR_PARAMEDIC_INV 0x006400FF00
#define COLOR_YELLOW_INV 0xFFFF00AA00
#define COLOR_ORANGE_INV 0xFF9900AA00
#define COLOR_DARKORANGE_INV 0xFF8C00FF00
#define COLOR_RED_INV 0xFF0000FF00
#define COLOR_DARKGRAY_INV 0x696969AA00
Reply
#4

Instead of adding two zeros to the end of the hex code, replace the last two letters. (ex. "#define COLOR_WHITE_INV 0xFFFFFFAA00" should be "#define COLOR_WHITE_INV 0xFFFFFF00")
Reply
#5

Quote:
Originally Posted by DTV
Посмотреть сообщение
Instead of adding two zeros to the end of the hex code, replace the last two letters. (ex. "#define COLOR_WHITE_INV 0xFFFFFFAA00" should be "#define COLOR_WHITE_INV 0xFFFFFF00")
Thats not i made? Not offencive, just ask

Originals Colors:
Код:
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_COP 0x6666CCFF
#define COLOR_GN 0x800080FF
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_PARAMEDIC 0x006400FF
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_DARKORANGE 0xFF8C00FF
#define COLOR_RED 0xFF0000FF
#define COLOR_DARKGRAY 0x696969AA
Transparent Colors:
Код:
#define COLOR_WHITE_INV 0xFFFFFFAA00
#define COLOR_COP_INV 0x6666CCFF00
#define COLOR_GN_INV 0x800080FF00
#define COLOR_WHITE_INV 0xFFFFFFAA00
#define COLOR_PARAMEDIC_INV 0x006400FF00
#define COLOR_YELLOW_INV 0xFFFF00AA00
#define COLOR_ORANGE_INV 0xFF9900AA00
#define COLOR_DARKORANGE_INV 0xFF8C00FF00
#define COLOR_RED_INV 0xFF0000FF00
#define COLOR_DARKGRAY_INV 0x696969AA00
Reply
#6

The color format is as follows:

"0xRRGGBBAA"

RR = Red
GG = Green
BB = Blue
AA = Alpha

FF = Highest value = 255
00 = Lowest value = 0

Alpha is the transparency of the color , thus to make one's marker invisible , you can need to set its alpha 0 either by doing some math or by defining the colors alpha

Код:
//Color Format:                   0xRRGGBBAA
#define COLOR_WHITE_INV           0xFFFFFF00
#define COLOR_COP_INV             0x6666CC00
#define COLOR_GN_INV              0x80008000
#define COLOR_WHITE_INV           0xFFFFFF00
#define COLOR_PARAMEDIC_INV       0x00640000
#define COLOR_YELLOW_INV          0xFFFF0000
#define COLOR_ORANGE_INV          0xFF990000
#define COLOR_DARKORANGE_INV      0xFF8C0000
#define COLOR_RED_INV             0xFF000000
#define COLOR_DARKGRAY_INV        0x69696900
//sorry for the intendations
For more safety you can use this function to convert any non-transparent value to transparent value
Код:
stock TransparentColor(color)
{
	return (color  & 0xFFFFFF00);
}
Reply
#7

Quote:
Originally Posted by -=Dar[K]Lord=-
Посмотреть сообщение
The color format is as follows:

"0xRRGGBBAA"

RR = Red
GG = Green
BB = Blue
AA = Alpha

FF = Highest value = 255
00 = Lowest value = 0

Alpha is the transparency of the color , thus to make one's marker invisible , you can need to set its alpha 0 either by doing some math or by defining the colors alpha

Код:
//Color Format:                   0xRRGGBBAA
#define COLOR_WHITE_INV           0xFFFFFF00
#define COLOR_COP_INV             0x6666CC00
#define COLOR_GN_INV              0x80008000
#define COLOR_WHITE_INV           0xFFFFFF00
#define COLOR_PARAMEDIC_INV       0x00640000
#define COLOR_YELLOW_INV          0xFFFF0000
#define COLOR_ORANGE_INV          0xFF990000
#define COLOR_DARKORANGE_INV      0xFF8C0000
#define COLOR_RED_INV             0xFF000000
#define COLOR_DARKGRAY_INV        0x69696900
//sorry for the intendations
For more safety you can use this function to convert any non-transparent value to transparent value
Код:
stock TransparentColor(color)
{
	return (color  & 0xFFFFFF00);
}
Ty so much <3
+rep!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)