[Pedido] Anti DDoS
#8

Quote:
Originally Posted by Marlon307
Посмотреть сообщение
Tente usar isso.

pawn Код:
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 SendClientMessage(playerid,0xFF0000AA,"Vocк foi desconectado por nгo conectar-se durante 2 segundos.");
    }
    format(IncomingConnection[IncomingIP], 16, ip_address);
    IncomingConnection[IncomingVezes] = 0;
    IncomingConnection[IncomingTempo] = gettime()+2;
    return 1;
}
warning 235: public function lacks forward declaration (symbol "OnIncomingConnection")
error 017: undefined symbol "BlockIpAddress"
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)