SA-MP Forums Archive
Need help with 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)
+--- Thread: Need help with Colors (/showthread.php?tid=318468)



Need help with Colors - ServerScripter - 15.02.2012

Hi , as i know we can put colors in chat text like

(xxxxxx)Hello to (xxxxxx) O(xxxxxx)Wner (xxxxxx)%s.....

so the problem is how to know all the colors than we can put ?
in other this is an example :
pawn Код:
SendClientMessage(playerid, COLOR_WHITE, "Welcome to {00FF00}M{FFFFFF}a{FF0000}r{FFFFFF}c{00FF00}o{FFFFFF}'{FF0000}s {FFFFFF}B{00FF00}i{FFFFFF}s{FF0000}t{FFFFFF}r{00FF00}o{FFFFFF}!");
why we put like : {FFFFFF}(six letters) and not {0xRRGGBBDD} ?


Re: Need help with Colors - Wesley221 - 15.02.2012

Hex only uses RRGGBB, not the opacity.

So practicly:
0xFFAAFFAA will be: FFAAFF.
Only thing you have to do, is remove the opacity and the '0x'.


Re: Need help with Colors - Vince - 15.02.2012

There are 256 ^ 3 = 16,777,216 different available colors! Use a color picker and copy the HTML code (without the hash character).


Re: Need help with Colors - doreto - 15.02.2012

im offering you to use ColorPicker by thedarkjoker94. You only need to select what color you wont and what name you wont to give him


Re: Need help with Colors - ServerScripter - 15.02.2012

so Hex use only those letters ?(marked in red) : 0xFFAAFFAA


Re: Need help with Colors - Wesley221 - 15.02.2012

Yep. They only use RRGGBB, just like u marked them above.


Re: Need help with Colors - ServerScripter - 15.02.2012

Thanks all !