Chat color
#1

pawn Код:
public OnPlayerText(playerid, text[])
{
    new pname[MAX_PLAYER_NAME], str[128];
    GetPlayerName(playerid, pname, sizeof(pname));
    strreplace(pname, '_', ' ');
                                                  //This will show when player speaks FirstName_LastName says: test
    format(str, sizeof(str), "{0xAFAFAFAA}%s{0xAFAFAFAA}: %s", pname, text);
    ProxDetector(30.0, playerid, str, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
    return 0;
}
I added the codes for the color but the chat still be white and i see the numbers, i would have the NAME clored and the text white
Reply


Messages In This Thread
Chat color - by Gooday - 09.03.2012, 13:08
Re: Chat color - by CmZxC - 09.03.2012, 13:10
Re: Chat color - by Reklez - 09.03.2012, 13:12

Forum Jump:


Users browsing this thread: 1 Guest(s)