change color of chat text?
#1

hi,
just wondering how to change the chat text color and the chat player's name color.
U know, when one team is blue, the players name in the chat is also blue.
How can i change the color? Also of the white chat text?
Saw this on some dm serers.

regards.
Reply
#2

SetPlayerColor(playerid, color)

Example:
pawn Код:
SetPlayerColor(playerid, 0x0000FFAA); //Would make them blue
Reply
#3

First, some colors on 0.3c:
pawn Код:
#define red "{FF002B}"
#define pink "{FF00D9}"
#define purple "{DFA7F2}"
#define blue "{A1C2FF}"
#define green "{63F279}"
#define yellow "{FAF623}"
#define black "{69670C}"
#define orange "{F2C80C}"
#define ice "{03F2FF}"
#define lime "{00FF40}"
#define grey "{D4D4D4}"
pawn Код:
public OnPlayerText(playerid, text[])
{
     new string[128];
     if(GetPlayerTeam(playerid) == 1) // Condition
     {
         format(string,sizeof(string),""#lime"(id: %d): "#red"%s",playerid,text); // Colors are like that: "#lime"
         SendPlayerMessageToAll(playerid, string);
         return 0;
     }
     // Any other things
     }
Reply
#4

//edit

ah, didnt see blackwaves answer.
thats what i wanted thx alot
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)