SA-MP Forums Archive
[Tutorial] Scripting Colors (Code / Online Generator) - 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: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] Scripting Colors (Code / Online Generator) (/showthread.php?tid=572915)



Scripting Colors (Code / Online Generator) - Hardicore - 02.05.2015

Introduction
This Is Colors Package For Scripting Help, If You Can't Collect Colors For Your Server, That Will Help You A lot, In This Topic I Will Give You Color Package And The URL Of It. That's My First Work In SA-MP And I Hope You Like It Guys.
Online Color Generator
Click Here For Online Color Generator.
Full Color(s) Package
Код:
#define COLOR_WHITE1 "{FFFFFF}"
#define COLOR_RED2 "{F81414}"
#define COLOR_GREEN3"{00FF22}"
#define COLOR_LIGHTBLUE4 "{00CED1}"
#define COLOR_BLACK5 "{FFF}"
#define COLOR_BLUE6 "{FFFF}"

#define COLOR_RED 0xDF0101
#define COLOR_BLUE 0x0000FF
#define COLOR_GREEN 0x00FF00
#define COLOR_LIGHTBLUE 0x2E9AFE
#define COLOR_LIGHTRED 0xFE2E2E
#define COLOR_LIGHTGREEN 0xA5DF00
#define COLOR_YELLOW 0xFFFF00
#define COLOR_LIGHTYELLOW 0xF3F781
#define COLOR_BLACK 0x000000
#define COLOR_WHITE 0xFFFFFF
#define COLOR_GREY 0xA4A4A4
#define COLOR_MAGNETA 0xDF01D7
#define COLOR_CLAY 0x2ECCFA
Credits
-Hardicore


Re: Scripting Colors (Code / Online Generator) - RaeF - 02.05.2015

But SA-MP using RRGGBBAA not RRGGBB except string ...

https://sampwiki.blast.hk/wiki/Colors_List


Re: Scripting Colors (Code / Online Generator) - Hardicore - 02.05.2015

I tested it and it worked


Re: Scripting Colors (Code / Online Generator) - Vince - 02.05.2015

You will get a color, alright, but I doubt it'd be the right one. This is complete bogus, though:
Quote:
pawn Код:
#define COLOR_BLACK5 "{FFF}"
#define COLOR_BLUE6 "{FFFF}"
Embedded colors ALWAYS needs 6 characters.


Re: Scripting Colors (Code / Online Generator) - Hardicore - 02.05.2015

ok


Re: Scripting Colors (Code / Online Generator) - Hardicore - 03.05.2015

New release soon


Re: Scripting Colors (Code / Online Generator) - AndreiWow - 22.06.2015

How can I place a color in a middle of a message like
SendClientMessage(playerid, COLOR_WHITE, " Welcome, on [orange]My Server,[white again] have fun!");
?


Re: Scripting Colors (Code / Online Generator) - Youssef221 - 23.06.2015

@AndreiWow,

Put this somewhere in your script:

pawn Код:
#define ORANGE "{FFBB00}"
#define WHITE "{FFFFFF}"
Then put this code anywhere in your script:

pawn Код:
SendClientMessage(playerid, WHITE, "Welcome, on "ORANGE"My Server,"WHITE" have fun!");