Anty Flood (example: aaaaaaaaaa)
#5

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;
}
?
Reply


Messages In This Thread
Anty Flood (example: aaaaaaaaaa) - by Zamek - 10.10.2017, 15:46
Re: Anty Flood (example: aaaaaaaaaa) - by Prokill911 - 10.10.2017, 16:17
Re: Anty Flood (example: aaaaaaaaaa) - by n00blek - 10.10.2017, 16:31
Re: Anty Flood (example: aaaaaaaaaa) - by Zamek - 10.10.2017, 16:32
Re: Anty Flood (example: aaaaaaaaaa) - by Jefff - 10.10.2017, 17:23
Re: Anty Flood (example: aaaaaaaaaa) - by AndreiWow - 10.10.2017, 17:26
Re: Anty Flood (example: aaaaaaaaaa) - by CodeStyle175 - 10.10.2017, 17:31
Re: Anty Flood (example: aaaaaaaaaa) - by Zamek - 10.10.2017, 17:51
Re: Anty Flood (example: aaaaaaaaaa) - by Prokill911 - 10.10.2017, 17:52
Re: Anty Flood (example: aaaaaaaaaa) - by Jefff - 10.10.2017, 23:35

Forum Jump:


Users browsing this thread: 3 Guest(s)