Several colors in one message - 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: Several colors in one message (
/showthread.php?tid=287489)
Several colors in one message -
styl3raaa - 03.10.2011
How to make text in SendClientMessage several colors.
Example: Hello to my server
Hello - blue
to my - red
server - white
Re: Several colors in one message -
iPLEOMAX - 03.10.2011
https://sampwiki.blast.hk/wiki/Colour_Embedding
To get different colours, visit this site:
http://www.colorpicker.com/
Then pick a colour and copy it's HEX code (something like this:
E01B4C)
Now put it into curly brackets: {E01B4C}
Now embed it this way: SendClientMessage(playerid, -1, "Hello! This is {E01B4C}RED.");
Will give: Hello! This is
RED!
Your example:
pawn Код:
SendClientMessage(playerid, -1, "{0000FF}Hello {FF0000}to my {FFFFFF}server!");