[Tutorial] Scripting Colors (Code / Online Generator)
#1

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
Reply
#2

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

https://sampwiki.blast.hk/wiki/Colors_List
Reply
#3

I tested it and it worked
Reply
#4

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.
Reply
#5

ok
Reply
#6

New release soon
Reply
#7

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!");
?
Reply
#8

@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!");
Reply


Forum Jump:


Users browsing this thread: