how to make a color chat?
#3

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;
}
Reply


Messages In This Thread
how to make a color chat? - by DerickClark - 25.11.2012, 16:42
Re: how to make a color chat? - by -=Dar[K]Lord=- - 25.11.2012, 16:43
Re: how to make a color chat? - by pasha97 - 25.11.2012, 16:53

Forum Jump:


Users browsing this thread: 1 Guest(s)