Color Embedding - 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: Color Embedding (
/showthread.php?tid=396239)
Color Embedding -
Zex Tan - 29.11.2012
Hello all , I'm having troubles with color embeddings , can anyone show me how's the code
Re: Color Embedding -
Joshman543 - 29.11.2012
What do you mean Color Embedding? Embedding into what?
Re: Color Embedding -
gtakillerIV - 30.11.2012
You have to define it first, like this:
Then you can either use the function "SendClientMessage" or format a string.
Example 1(Using SendClientMessage):
pawn Код:
SendClientMessage(playerid, Yellow, "This text is yellow "green"but this text is green!");
It will give you this: Yellow color ---->This text is yellow | This text is green ------>but this text is green!
Example 2(formating a string):
pawn Код:
new string[44];
format(string, sizeof(string), "This text is yellow "green"but this text is green!");
SendClientMessage(playerid, Yellow, string);
The result is gonna be the same as the above.
Re: Color Embedding -
goviscrap - 30.11.2012
here you got some Colors
Код:
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_LIGHTRED 0xFF6347AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define COLOR_LLIGHTBLUE 0x33CCFFAA
#define COLOR_LLIGHTGREEN 0x9ACD32AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_LIGHTYELLOW 0xFFFF91FF
#define COLOR_YELLOW2 0xF5DEB3AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_LIGHT_BLUE 0x9FB1EEAA
#define COLOR_PURPLE 0xC2A2DAAA