OnPlayerText changing color
#8

pawn Код:
#define COLOR_RED 0xFF0000AA
Lets take this as an example.

If you're going to use such a thing as a HEX code you need to convert it as well, so the following color would look like this:

pawn Код:
#define COL_RED "{FF0000}"
Now let's move on to the usage as well:

pawn Код:
public OnPlayerText(playerid, text[])
{
new string[50];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, 24);
format(string,sizeof(string),"My name is "#COL_RED"%s",pName);
SendClientMessageToAll(-1, string);
I hope that I helped you!.
Reply


Messages In This Thread
OnPlayerText changing color - by Brandondw8 - 19.05.2014, 07:35
Re: OnPlayerText changing color - by SAMProductions - 19.05.2014, 07:37
Re: OnPlayerText changing color - by Brandondw8 - 19.05.2014, 07:40
Re: OnPlayerText changing color - by SAMProductions - 19.05.2014, 07:43
Re: OnPlayerText changing color - by Guest4390857394857 - 19.05.2014, 07:48
Re: OnPlayerText changing color - by Brandondw8 - 19.05.2014, 07:49
Re: OnPlayerText changing color - by Threshold - 19.05.2014, 07:49
Re: OnPlayerText changing color - by Stanford - 19.05.2014, 07:50
Re: OnPlayerText changing color - by Brandondw8 - 19.05.2014, 07:51

Forum Jump:


Users browsing this thread: 1 Guest(s)