Coloured SendClientMessage
#1

Hi.
I noticed that SA:MP 0.3 allows to use more colors in SendClientMessage, and I kinda don't know how.
Any ideas?
Thanks.
Reply
#2

Quote:
Originally Posted by Homerman
Посмотреть сообщение
Hi.
I noticed that SA:MP 0.3 allows to use more colors in SendClientMessage, and I kinda don't know how.
Any ideas?
Thanks.
Use color codes todo this.
Example:

SendClientMessage(playerid, 0xFF0000FF, "* Hello");
Would do this:
* Hello

pawn Код:
#define COLOR_RED 0xFF0000FF //Color Red
#define COLOR_BLUE 0x0000FFFF /Color Blue
Use these parts from the codes:

#define COLOR_RED 0xFF0000FF //Color Red
#define COLOR_BLUE 0x0000FFFF /Color Blue

SendClientMessage(playerid, 0xFF0000FF, "* {FFFF00}He{0000FF}llo");

Would do this:
* Hello


I hope this helped you

---
Delight
Reply
#3

Much appreciated, thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)