[Ajuda] Anti Invisible Bot Attacker
#5

Tente isso, creio que possa amenizar o seu problema
pawn Код:
#include <a_samp>

enum iI
{
    IncomingIP[16],
    IncomingVezes,
    IncomingTempo
}
new IncomingConnection[iI];

public OnIncomingConnection(playerid, ip_address[], port)
{
    if(!strcmp(IncomingConnection[IncomingIP], ip_address, true) && IncomingConnection[IncomingTempo] > gettime())
    {
        if(IncomingConnection[IncomingVezes] > 3) return BlockIpAddress(ip_address, 0), printf("ip_%d:%d bloqueado!", ip_address, port);
        IncomingConnection[IncomingVezes]++;
        return Ban(playerid);
    }
    format(IncomingConnection[IncomingIP], 16, ip_address);
    IncomingConnection[IncomingVezes] = 0;
    IncomingConnection[IncomingTempo] = gettime()+2;
    return 1;
}
Reply


Messages In This Thread
Anti Invisible Bot Attacker - by zRan - 21.10.2014, 20:44
Re: Anti Invisible Bot Attacker - by connork - 21.10.2014, 20:46
Re: Anti Invisible Bot Attacker - by zRan - 21.10.2014, 20:50
Re: Anti Invisible Bot Attacker - by connork - 21.10.2014, 20:51
Re: Anti Invisible Bot Attacker - by Marlon307 - 21.10.2014, 20:53
Re: Anti Invisible Bot Attacker - by connork - 21.10.2014, 20:55
Re: Anti Invisible Bot Attacker - by zRan - 21.10.2014, 20:55
Re: Anti Invisible Bot Attacker - by connork - 21.10.2014, 20:58
Re: Anti Invisible Bot Attacker - by zRan - 21.10.2014, 21:01
Re: Anti Invisible Bot Attacker - by connork - 21.10.2014, 21:02

Forum Jump:


Users browsing this thread: 1 Guest(s)