SA-MP Forums Archive
Player Color Question - 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: Player Color Question (/showthread.php?tid=267856)



Player Color Question - ServerRestart - 10.07.2011

If i get my own color codes off http://www.colorpicker.com/ -- How can i add them to my script, ?


Re: Player Color Question - PotH3Ad - 10.07.2011

Copy and paste the color and just add "0x" to the front.

Example: A3314D = 0xA3314D


Re: Player Color Question - Basicz - 10.07.2011

Hmm, when you pick a color, it should add this on the bar in the top ...
Like
PHP код:
#801933 
Now, just remove the #, add 0x at the first, then the Alpha of the hex ( FF, AA )

So it will be converted to

pawn Код:
#define My_NewColour 0x801933AA // or FF ( The last 2 characters )
Anyways, there are many other(s) color pickers for the hex ...... Search!

@ Pothead

I don't think so, because the format is

pawn Код:
#define myColour 0xRRGGBBAA
( Exception : 0.3c colors )

Tested with :

pawn Код:
#define testColour 0xFFFFFF
Results in Cyan ... ( AFAIK, I think I had that before )

pawn Код:
#define  testColour 0xFFFFFFAA
Results in White ...


Re: Player Color Question - ServerRestart - 10.07.2011

Thank's!