SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese > Lançamentos/Releases

Reply
 
Thread Tools Display Modes
Old 23/07/2012, 06:47 AM   #21
Skream
Banned
 
Join Date: Apr 2012
Posts: 225
Reputation: 64
Default Re: Anti-DDos Bot

JernelJ já tinha feito um anti ddos bot, se não me engano foi ano passado...

Só avisando ai, não sei se você sabia^^
Skream is offline   Reply With Quote
Old 23/07/2012, 07:40 AM   #22
Mercurio
Gangsta
 
Join Date: Dec 2011
Posts: 518
Reputation: 2
Default Re: Anti-DDos Bot

Eu tentei utilizar o do Drakins mas deu erros :/
__________________
Mercurio is offline   Reply With Quote
Old 23/07/2012, 07:54 AM   #23
ipsBruno
Godfather
 
ipsBruno's Avatar
 
Join Date: Apr 2010
Location: Brazil, Caxias RS
Posts: 6,087
Reputation: 545
Default Respuesta: Anti-DDos Bot

Não coloca a linha então, testa o sistema sem colocar. Se funcionar deixa assim
__________________
https://github.com/ipsBruno
ipsBruno is offline   Reply With Quote
Old 23/07/2012, 04:23 PM   #24
paulor
High-roller
 
Join Date: Nov 2011
Location: Brasil
Posts: 3,117
Reputation: 222
Default Re : Anti-DDos Bot

Gostei do bpProteção, mais ka entre nois, pbProtect ficaria bem melhor!
__________________
Meus Projetos - contato@paulorwd.com.br
[IMG]https://sites.******.com/site/facesbypaulo/MetropoleGames.png[/IMG]
paulor is offline   Reply With Quote
Old 23/07/2012, 10:51 PM   #25
ipsBruno
Godfather
 
ipsBruno's Avatar
 
Join Date: Apr 2010
Location: Brazil, Caxias RS
Posts: 6,087
Reputation: 545
Default Respuesta: Anti-DDos Bot

Tens razão. Deve ser "pbProtect" (paulo bruno protect). Até porque, o burro primeiro

[ame]http://www.youtube.com/watch?v=MfU2qcoYIc0[/ame]
__________________
https://github.com/ipsBruno
ipsBruno is offline   Reply With Quote
Old 23/07/2012, 11:23 PM   #26
paulor
High-roller
 
Join Date: Nov 2011
Location: Brasil
Posts: 3,117
Reputation: 222
Default Re: Respuesta: Anti-DDos Bot

Quote:
Originally Posted by ipsBruno View Post
Tens razão. Deve ser "pbProtect" (paulo bruno protect). Até porque, o burro primeiro

http://www.youtube.com/watch?v=MfU2qcoYIc0
Não vi graça... Tente outra!
__________________
Meus Projetos - contato@paulorwd.com.br
[IMG]https://sites.******.com/site/facesbypaulo/MetropoleGames.png[/IMG]
paulor is offline   Reply With Quote
Old 24/07/2012, 08:25 PM   #27
Math3us
Huge Clucker
 
Math3us's Avatar
 
Join Date: Jul 2012
Location: Cid.Tiradentes-SP
Posts: 487
Reputation: 25
Default Re: Anti-DDos Bot

esta dando erro ao compilar [pawn]C:\Users\Villy\Desktop\iniciante\filterscripts\max ips.pwn(81) : warning 203: symbol is never used: "botGetIP"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
[/pawno]
pawn Code:
#include a_samp

#if !defined varGet
#define varGet(%0)      getproperty(0,%0)
#endif

// [url]http://forum.sa-mp.com/showthread.php?p=1925909[/url]


#if !defined varSet
#define varSet(%0,%1) setproperty(0, %0, %1)
#endif

static botGetIP[24];

#define IsPlayerBot(%0)\
            GetPlayerPing(%0) == 65535 && (gettime() - varGet((GetPlayerIp(%0, botGetIP, sizeof botGetIP), botGetIP)) > 5)


public OnPlayerConnect(playerid)
{

    if(IsPlayerNPC(playerid)) return false;

    static
        playerip[24]
    ;

    GetPlayerIp(playerid, playerip, 24);

    if(gettime() - varGet(playerip) < 2) {


        strcat(playerip, "di_S");

        if(gettime() - varGet(playerip) < 3) {
            return false;
        }

        printf("%d Entrou em menos de 2 segundos", playerid);

        GetPlayerIp(playerid, playerip, 20);

        varSet(playerip, gettime());

        strcat(playerip, "x");

        static timers ;
        timers = varGet(playerip);

        varSet(playerip, 1+ timers);

        if(timers > 2) {

            playerip[strlen(playerip) - 2] = 0;

            printf("BOT: ID -> %d IP -> %s", playerid, playerip);
            BanEx(playerid, "Bot Connect");
        }
    }
    return varSet(playerip, gettime());
}

public OnPlayerDisconnect(playerid, reason)
{
    if(reason == 2) {

        static
            playerip[20]
        ;


        GetPlayerIp(playerid, playerip, 20);
        strcat(playerip, "di_S");

        varSet(playerip, gettime());
    }
    return false;
   
}
Math3us is offline   Reply With Quote
Old 24/07/2012, 09:00 PM   #28
ipsBruno
Godfather
 
ipsBruno's Avatar
 
Join Date: Apr 2010
Location: Brazil, Caxias RS
Posts: 6,087
Reputation: 545
Default Respuesta: Anti-DDos Bot

OKay. Atualizei o código na página principal


Quote:
Originally Posted by paulor View Post
Não vi graça... Tente outra!
bibibibi
__________________
https://github.com/ipsBruno
ipsBruno is offline   Reply With Quote
Old 24/07/2012, 09:31 PM   #29
Math3us
Huge Clucker
 
Math3us's Avatar
 
Join Date: Jul 2012
Location: Cid.Tiradentes-SP
Posts: 487
Reputation: 25
Default Re: Respuesta: Anti-DDos Bot

Quote:
Originally Posted by ipsBruno View Post
OKay. Atualizei o código na página principal



bibibibi
deu certo vlw
Math3us is offline   Reply With Quote
Old 21/08/2012, 02:57 AM   #30
R3S1D3NT1
Huge Clucker
 
R3S1D3NT1's Avatar
 
Join Date: Mar 2012
Posts: 274
Reputation: 7
Default Re: Anti-DDos Bot

Bom Bom mt bom mt mt mt bom kkkk excelente trabalho bruno S2
R3S1D3NT1 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anti DDoS Protection? Toni Everything and Nothing 5 29/07/2011 05:47 PM
anti ddos Sin- Server Support 15 05/10/2009 06:46 PM
Anti ddos help Calibras Server Support 10 01/09/2009 02:58 PM


All times are GMT. The time now is 11:04 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.