SA-MP Forums Archive
Chat colour - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Chat colour (/showthread.php?tid=331361)



Chat colour - Gooday - 04.04.2012

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?


Re: Chat colour - ViniBorn - 04.04.2012

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


Re: Chat colour - blank. - 04.04.2012

{a3a3a3}Name: {ffffff}Text


Re: Chat colour - EdYx - 14.05.2012

datimi ChatColor.inc