Several colors in one message
#1

How to make text in SendClientMessage several colors.

Example: Hello to my server
Hello - blue
to my - red
server - white
Reply
#2

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!");
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)