How do I add color to these messages?
#1

I have team chat in my script but how do I make it so they are colored?
pawn Код:
public OnPlayerText(playerid,text[])
{
    new string[124],name[24];
    GetPlayerName(playerid,name,sizeof(name));
    switch(gTeam[playerid])
    {
        case 0:
        {
            format(string,sizeof(string)"[Blue Team Chat] %s: %s",name,text);//I want color here for "Blue Team Chat"
            SendTeamMessage(0,string);
        }
        case 1:
        {
            format(string,sizeof(string)"[Red Team Chat] %s: %s",name,text);//I want color here for "Red Team Chat"
            SendTeamMessage(1,string);
        }
    }
    return 0;
}
Reply


Messages In This Thread
How do I add color to these messages? - by NinjahZ - 12.08.2013, 04:18
Re: How do I add color to these messages? - by ThePhenix - 12.08.2013, 04:20
Re: How do I add color to these messages? - by [XST]O_x - 12.08.2013, 04:20

Forum Jump:


Users browsing this thread: 2 Guest(s)