25.11.2012, 16:42
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.
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;
}