03.04.2012, 10:50
pawn Код:
#define white "{FFFFFF}" //at the top of script after #include
//OnPlayerText
new string[128], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "(%d) %s: "white"%s", playerid, pname, text); //(%d) will be the playerid, %s will be the players name, "white"%s should be the player typed message text
SendClientMessageToAll(GetPlayerColor(playerid), string); //will sent message to everyone with players color
and almost forgot set the OnPlayerText return 1; to return 0;

