05.06.2012, 23:10
pawn Код:
new pLastChat[MAX_PLAYERS][129];
public OnPlayerText(playerid, text[])
{
if(!strcmp(text, pLastChat[playerid], true))
{
SendClientMessage(playerid, COLOR_RED, "Do not repeat yourself");
format(pLastChat[playerid], 128, "%s", text);
return 0; // Stop the chat from being sent
}
return 1;
}