10.10.2017, 17:31
PHP код:
new FloodTC[MAX_PLAYERS]
FloodCnt[MAX_PLAYERS];
public OnPlayerText(playerid,text[]){
if(GetTickCount()-FloodTC[playerid] < 250){
FloodTC[playerid]=GetTickCount();
if(++FloodCnt[playerid]==3)Kick(playerid);
else scm(playerid,-1,"STOP FLOODING!");
return 0;
}
FloodCnt[playerid]=1;
FloodTC[playerid]=GetTickCount();
return 1;
}