Coloured SendClientMessage
#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


Messages In This Thread
Coloured SendClientMessage - by Homerman - 17.06.2011, 12:45
Re: Coloured SendClientMessage - by [DDC]Delight - 17.06.2011, 13:16
Re: Coloured SendClientMessage - by Homerman - 17.06.2011, 15:58

Forum Jump:


Users browsing this thread: 1 Guest(s)