Hex Colors? - 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: Hex Colors? (
/showthread.php?tid=272757)
Hex Colors? -
TheArcher - 29.07.2011
I have a question for exemple in SendClientMessage(playerid, COLORblalbabl, " {color?} Hey, dude ");
What kind of code i have to use inside the brakets?
Re: Hex Colors? -
iPLEOMAX - 29.07.2011
Use RGB Hex Color codes.
This is how a color code may look like: 0x
RRGGBBAA
Indicating characters (A hex won't have R & G, it only ranges from A,B,C,D,E,F & Integers):
R = Red Hex Code
G = Green Hex Code
B = Blue Hex Code
A = Alpha Hex Code
For embedding the codes in strings, use it like this: {RRGGBB}
Example:
pawn Код:
new string[] = "{00FF00}Hello {0000FF}World!"; SendClientMessage(playerid, -1, string);
will print:
Hello World!
Search in ****** for Color Codes and you'll find many websites showing them...
Re: Hex Colors? -
TheArcher - 29.07.2011
Thanks a lot man
Re: Hex Colors? -
TheArcher - 29.07.2011
I didnt find anything about it can you send me a link?
Re: Hex Colors? -
Fj0rtizFredde - 29.07.2011
http://www.colorpicker.com/ there you have a link.
Re: Hex Colors? -
Aleks1337 - 29.07.2011
for the hex colors try this
http://www.psyclops.com/tools/rgb/