13.07.2012, 02:40
Easy fix
pawn Код:
public OnPlayerText(playerid, text[])
{
new msg[128],tPlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, tPlayerName, MAX_PLAYER_NAME);
format(msg, sizeof(msg), "%s (%d): {FFFFFF}%s", tPlayerName, playerid, text);
static pText[MAX_PLAYERS][128];
if(pText[playerid][0] != '\0' && !strcmp(text,pText[playerid],true)) return SendClientMessage(playerid,-1,"* Stop repeating!") & 0;
strcat((pText[playerid][0]='\0',pText[playerid]),text,128);
SendClientMessageToAll(GetPlayerColor(playerid), msg);
return 0;
}