Chat colour
#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), "%s says: %s", pname, text);
    ProxDetector(30.0, playerid, str, COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY,COLOR_GREY);
    SetPlayerChatBubble(playerid, text, COLOR_GOLD, 100.0, 10000);
    return 0;
}
I would like to have:

NAME(COLOR_GREY): TEXT(COLOR_WHITE) How?
Reply
#2

format(str, sizeof(str), "{AFAFAF}%s {FFFFFF}says: %s", pname, text);
Reply
#3

{a3a3a3}Name: {ffffff}Text
Reply
#4

datimi ChatColor.inc
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)