SA-MP Forums Archive
Chat colors.. - 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 colors.. (/showthread.php?tid=626400)



Chat colors.. - Djumza - 14.01.2017

Hello guys..
I wanted to add player id after his nickname in chat so i done this :
pawn Код:
public OnPlayerText(playerid, text[])
{
    new name[MAX_PLAYER_NAME],msg[128];
    GetPlayerName(playerid,name,sizeof(name));
    format(msg,sizeof(msg),"%s(%i):%s",name,playerid,text);
    SendClientMessageToAll(GetPlayerColor(playerid),msg);
    return 0;
}
How is it possible to make two color message ? Player nick and id should be same color as his team and the message should be white..


Re: Chat colors.. - Freaksken - 14.01.2017

Color Embedding


Re: Chat colors.. - Djumza - 14.01.2017

Thank you.