SA-MP Forums Archive
Color in SendClientMessage. - 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: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Color in SendClientMessage. (/showthread.php?tid=247610)



Color in SendClientMessage. - iGetty - 10.04.2011

How could I do what I am trying to say here:

pawn Код:
SendClientMessage(playerid, "You turned your vehicle (Green here)ON.");
How could I add the green text there? and same for this:

pawn Код:
SendClientMessage(playerid, "You turned your vehicle (Red here)OFF.");
Thanks in advance.



Re: Color in SendClientMessage. - LuxurioN™ - 10.04.2011

Quote:
Originally Posted by getty154
Посмотреть сообщение
How could I do what I am trying to say here:

pawn Код:
SendClientMessage(playerid, "You turned your vehicle (Green here)ON.");
How could I add the green text there? and same for this:

pawn Код:
SendClientMessage(playerid, "You turned your vehicle (Red here)OFF.");
Thanks in advance.
Код:
SendClientMessage(playerid, "You turned your vehicle {6EF83C}ON.");
Код:
SendClientMessage(playerid, "You turned your vehicle {F81414}OFF.");



Re: Color in SendClientMessage. - iGetty - 10.04.2011

Quote:
Originally Posted by LuxurioN™
Посмотреть сообщение
Код:
SendClientMessage(playerid, "You turned your vehicle {6EF83C}ON.");
Код:
SendClientMessage(playerid, "You turned your vehicle {F81414}OFF.");
Thank you mate, got it!


Re: Color in SendClientMessage. - Jantjuh - 10.04.2011

LuxurioN said it all. I only want to tell you you can just put any heximal color number in brackets: { }

pawn Код:
SendClientMessage(playerid, color, "{F81414} Hey :)");
http://www.colorschemer.com/online.html

Edit: lol, didn't see your last post :P