SA-MP Forums Archive
A simple color question - 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: A simple color question (/showthread.php?tid=327266)



A simple color question - SampLoverNo123 - 20.03.2012

A simple question, how to change color of of only single word in ^sendclientmessage"sentence in pawno? only single word not whole line. can anyone tell me?


Re: A simple color question - doreto - 20.03.2012

PHP код:
SendClientMessage(playerid,COLOR_RED,""RED"Here"WHITE" You Example for "GREEN"Color text!"); 
define colors
PHP код:
#define COLOR_GREEN 0x00FF00FF
#define COLOR_RED 0xFF0000FF
#define COLOR_BLUE 0x0000FFFF
if they dont work try this 
#define RED "{F81414}"
#define GREEN "{00FF22}"
#define BLUE "{0025E1}" 



Re: A simple color question - SampLoverNo123 - 20.03.2012

it will work?


Re: A simple color question - fordawinzz - 20.03.2012

no, it won't

pawn Код:
#define RED "{FF0000}"
#define WHITE "{FFFFFF}"

SendClientMessage(playerid, -1, "Hello "#RED"there "#WHITE", how are you?");



Re: A simple color question - doreto - 20.03.2012

yea i test before post :P