Quote:
Originally Posted by Jefff
pawn Код:
IsPlayerFlooding(const string[]) { new cnt,len = strlen(string); for(new i,d; i < len-1; i++) for(d = i+1; d < len; d++) if(tolower(string[i]) == tolower(string[d])) { if(++cnt > 1) return 1; } else { cnt = 0; break; }
return 0; }
?
|
Can you explain how to set the limit for the characters from which to detect the flood?