SA-MP Forums Archive
fast reply - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: fast reply (/showthread.php?tid=246808)



fast reply - Venice - 06.04.2011

im chat is fully same color i need to change text message color not name



here code
pawn Code:
new string[128], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "%s (%i): %s", name, playerid, text);
        SendClientMessageToAll(GetPlayerColor(playerid), string);



Re: fast reply - s0nic - 06.04.2011

You can try that new thing like this:
pawn Code:
format(string, sizeof(string), "%s (%i): {FFFFFF}%s", name, playerid, text);



Re: fast reply - Vince - 06.04.2011

Use SendPlayerMessageToAll.