how to make a color chat? - 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: how to make a color chat? (
/showthread.php?tid=395244)
how to make a color chat? -
DerickClark - 25.11.2012
how to make a color chat,if u type u wanna it show up the colors if they somthing show up the color chat need help.
Re: how to make a color chat? -
-=Dar[K]Lord=- - 25.11.2012
you mean to say chat with different colors?
like yellow text blue text?
Re: how to make a color chat? -
pasha97 - 25.11.2012
pawn Код:
define ChatColor 0xFFFFFF // this is color of chat. Change it to what you need
OnPlayerText(playerid, text[])
{
new PlayerName[MAX_PLAYER_NAME];
new textin[1024];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(textin, 1024, "%s(ID:%d): "ChatColor"%s", PlayerName, playerid, text);
SendClientMessageToAll(GetPlayerColor(playerid), textin);
return 0;
}