[Pedido] Anti DDoS
#10

Quote:
Originally Posted by khimera
Посмотреть сообщение
warning 235: public function lacks forward declaration (symbol "OnIncomingConnection")
error 017: undefined symbol "BlockIpAddress"
Atualizar suas includes para a versao 0.3z r4
ou
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_%s:%s 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 DDoS - by SatanMessenger - 06.09.2014, 05:44
Re: Anti DDoS - by SatanMessenger - 06.09.2014, 08:58
Re: Anti DDoS - by Marlon307 - 06.09.2014, 10:21
Re: Anti DDoS - by SatanMessenger - 06.09.2014, 10:32
Re: Anti DDoS - by SatanMessenger - 06.09.2014, 10:49
Re: Anti DDoS - by Marlon307 - 06.09.2014, 10:56
Re: Anti DDoS - by MTCpyedroDN - 06.09.2014, 18:12
Re: Anti DDoS - by khimera - 07.09.2014, 13:12
Re: Anti DDoS - by MTCpyedroDN - 07.09.2014, 13:27
Re: Anti DDoS - by Marlon307 - 07.09.2014, 15:43

Forum Jump:


Users browsing this thread: 1 Guest(s)