Help ! For REP+11111 - 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: Help ! For REP+11111 (
/showthread.php?tid=334936)
Help ! For REP+11111 -
Avi57 - 16.04.2012
Hey Guys,
How can i add color to a dialog portion like this:
Thx in Advance
Avi.
Re: Help ! For REP+11111 -
Burn_ - 16.04.2012
Use this colors:
Quote:
#define COL_EASY "{FFF1AF}"
#define COL_WHITE "{FFFFFF}"
#define COL_BLACK "{0E0101}"
#define COL_GREY "{C3C3C3}"
#define COL_GREEN "{6EF83C}"
#define COL_RED "{F81414}"
#define COL_YELLOW "{F3FF02}"
#define COL_ORANGE "{FFAF00}"
#define COL_LIME "{B7FF00}"
#define COL_CYAN "{00FFEE}"
#define COL_LIGHTBLUE "{00C0FF}"
#define COL_BLUE "{0049FF}"
#define COL_MAGENTA "{F300FF}"
#define COL_VIOLET "{B700FF}"
#define COL_PINK "{FF00EA}"
#define COL_MARONE "{A90202}"
#define COL_CMD "{B8FF02}"
#define COL_PARAM "{3FCD02}"
#define COL_SERVER "{AFE7FF}"
#define COL_VALUE "{A3E4FF}"
#define COL_RULE "{F9E8B7}"
#define COL_RULE2 "{FBDF89}"
#define COL_RWHITE "{FFFFFF}"
#define COL_LGREEN "{C9FFAB}"
#define COL_LRED "{FFA1A1}"
#define COL_LRED2 "{C77D87}"
|
Re: Help ! For REP+11111 -
[MG]Dimi - 16.04.2012
Use HEX Color Code "{RRGGBB}Stop Radio"
RR - Red;
GG - Green;
BB - Blue;
http://www.december.com/html/spec/colorhex.html
Enjoy.
Re: Help ! For REP+11111 -
Avi57 - 16.04.2012
Thx both of u theres a rep +1
Re: Help ! For REP+11111 -
zSuYaNw - 16.04.2012
Quote:
Originally Posted by Avi57
Thx both of u theres a rep +1
|
You can use "PlayerColor" In Hex:
pawn Код:
format(string, sizeof(string),"Helo ! {%h}PlayerName", GetPlayerColor(playerid) >>> 8);
Exemple:
If's PlayerColor is equal "0xFF000FF", the ouput show's: "FF0000".