[Pedido] Algum anti-ddos que funcione por favor!!!
#1

Boa noite.
Alguйm poderia por gentileza disponibilizar um anti-ddos que funcione? Jб testei diversos e nem um deles funcionou.


Reply
#2

Esse eu acho supimpa http://www.fortguard.com/download.html
Reply
#3

Quote:
Originally Posted by loganout
Посмотреть сообщение
WHAT?
Й script anti bot que procuro...
Reply
#4

sabe aquele fs de max ip posta ae como vc usa ele !
Reply
#5

https://sampforum.blast.hk/showthread.php?tid=361931

Funciona perfeitamente.
Reply
#6

Quote:
Originally Posted by billy the kid
Посмотреть сообщение
sabe aquele fs de max ip posta ae como vc usa ele !
pawn Код:
// maxips FS limits the number of players connecting from a
// single IP address.

#include <a_samp>

#define MAX_CONNECTIONS_FROM_IP     4

//---------------------------------------------

public OnFilterScriptInit()
{
    printf("\n*** Player IP limiting FS (maxips) Loaded. Max connections from 1 IP = %d\n",MAX_CONNECTIONS_FROM_IP);
}

//---------------------------------------------
// GetNumberOfPlayersOnThisIP
// Returns the number of players connecting from the
// provided IP address

stock GetNumberOfPlayersOnThisIP(test_ip[])
{
    new against_ip[32+1];
    new x = 0;
    new ip_count = 0;
    for(x=0; x<MAX_PLAYERS; x++) {
        if(IsPlayerConnected(x)) {
            GetPlayerIp(x,against_ip,32);
            if(!strcmp(against_ip,test_ip)) ip_count++;
        }
    }
    return ip_count;
}

//---------------------------------------------

public OnPlayerConnect(playerid)
{
    new connecting_ip[32+1];
    GetPlayerIp(playerid,connecting_ip,32);
    new num_players_on_ip = GetNumberOfPlayersOnThisIP(connecting_ip);
   
    if(num_players_on_ip > MAX_CONNECTIONS_FROM_IP) {
        printf("O player (%d) exerceu %d IPs conectados %s.", playerid, MAX_CONNECTIONS_FROM_IP, connecting_ip);
        Ban(playerid);
        return 1;
    }

    return 0;
}
   
//---------------------------------------------
...
ipsBruno, eu perguntei porque tava dando warning/erro nas linhas lб, vocк respondeu para apagar e usar para ver se funfar, e nгo funfou.
Reply
#7

pawn Код:
/*esta assim*/
#define MAX_CONNECTIONS_FROM_IP     4  
/* aki entrara no server 4 ip iguais
mude para*/
 
#define MAX_CONNECTIONS_FROM_IP     1
 /* se tiver mais de 1 ip igual e BAN*/
Reply
#8

Pra que max ip? Daн quem tem lan house ou internet compartilhada fica sem poder jogar e seu servidor perde muitos players.


Mercurio, Eu atualizei. Use em um filterscript
Reply
#9

Quote:
Originally Posted by ipsBruno
Pra que max ip? Daн quem tem lan house ou internet compartilhada fica sem poder jogar e seu servidor perde muitos players.
as vezes perde as vezes nao por que causa ninguem joga em lan house por que hoje quase todo mundo tem um pc mais mesmo assim e melhor ele usar o seu fs por que ae nao risco de perde players
Reply
#10

Quote:
Originally Posted by Mercurio
Посмотреть сообщение
pawn Код:
// maxips FS limits the number of players connecting from a
// single IP address.

#include <a_samp>

#define MAX_CONNECTIONS_FROM_IP     4

//---------------------------------------------

public OnFilterScriptInit()
{
    printf("\n*** Player IP limiting FS (maxips) Loaded. Max connections from 1 IP = %d\n",MAX_CONNECTIONS_FROM_IP);
}

//---------------------------------------------
// GetNumberOfPlayersOnThisIP
// Returns the number of players connecting from the
// provided IP address

stock GetNumberOfPlayersOnThisIP(test_ip[])
{
    new against_ip[32+1];
    new x = 0;
    new ip_count = 0;
    for(x=0; x<MAX_PLAYERS; x++) {
        if(IsPlayerConnected(x)) {
            GetPlayerIp(x,against_ip,32);
            if(!strcmp(against_ip,test_ip)) ip_count++;
        }
    }
    return ip_count;
}

//---------------------------------------------

public OnPlayerConnect(playerid)
{
    new connecting_ip[32+1];
    GetPlayerIp(playerid,connecting_ip,32);
    new num_players_on_ip = GetNumberOfPlayersOnThisIP(connecting_ip);
   
    if(num_players_on_ip > MAX_CONNECTIONS_FROM_IP) {
        printf("O player (%d) exerceu %d IPs conectados %s.", playerid, MAX_CONNECTIONS_FROM_IP, connecting_ip);
        Ban(playerid);
        return 1;
    }

    return 0;
}
   
//---------------------------------------------
...
ipsBruno, eu perguntei porque tava dando warning/erro nas linhas lб, vocк respondeu para apagar e usar para ver se funfar, e nгo funfou.
Quote:
Originally Posted by ipsBruno
Посмотреть сообщение
Quote:
Originally Posted by ipsBruno
Посмотреть сообщение
Pra que max ip? Daн quem tem lan house ou internet compartilhada fica sem poder jogar e seu servidor perde muitos players.


Mercurio, Eu atualizei. Use em um filterscript
Ok Bruno.
E obrigado Billy mas nгo posso fazer isso. No meu servidor tem umas 7 pessoas com internet compartilhada e 4 que jogam em Lan :/

Bruno oque quiseste dizer com isto?
pawn Код:
if(IsPlayerBOT(playerid)) return false;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)