ZCMD-vel:
new CommandCount[MAX_PLAYERS], Command[MAX_PLAYERS][64];
public OnPlayerCommandReceived(playerid, cmdtext[])
{
CommandCount[playerid]++;
if(CommandCount[playerid] > 4 && !strcmp(Command[playerid], cmdtext))
{
format(Command[playerid], 64, cmdtext);
CommandCount[playerid] = 0;
SendClientMessage(playerid, -1, \"Ezt a parancsot nem írhatod be többször!\");
return false;
}
}