SA-MP Forums Archive
[AJUDA]Sistema de Antiboot que bani o ip de quem bota o boot - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA]Sistema de Antiboot que bani o ip de quem bota o boot (/showthread.php?tid=313464)



[AJUDA]Sistema de Antiboot que bani o ip de quem bota o boot - DPS|NeW| - 26.01.2012

Bom primeiramente queria falar ola a todos e queria saber se existe um jeito de criar um sistema de antiboot que quando o player entra no sv bani automaticamente o nome da conta na pasta Banidos e o ip na pasta IpsBanidos.

OBRIGADO DESDE JБ


AW: [AJUDA]Sistema de Antiboot que bani o ip de quem bota o boot - paulor - 26.01.2012

pawn Код:
#define MAX_CONNECTIONS_FROM_IP     3 // maximo de conecзao com o msm IP
pawn Код:
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)
    {
        Ban(playerid);
        return 1;
    }
}
pawn Код:
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;
}
Isso me ajudou muito. ++REP++


Re: [AJUDA]Sistema de Antiboot que bani o ip de quem bota o boot - StrondA_ - 26.01.2012

nгo merece reputaзгo, se o dono do tуpico tivesse usado o search ele tinha resolvido o problema.


Re: [AJUDA]Sistema de Antiboot que bani o ip de quem bota o boot - paulor - 26.01.2012

Fica queto eu ajuedei o cara e boa


Respuesta: [AJUDA]Sistema de Antiboot que bani o ip de quem bota o boot - .Skool_. - 26.01.2012

Oque vocк estб procurando й exatamente isto?
https://sampforum.blast.hk/showthread.php?tid=312503
Bem.. ele impede que deixe que uma pessoa coloque mais de 3 BOTS no servidor.
Й se os BOTS derem reconnect (conectar й desconectar) eleй banido... Bom proveito.


Re: [AJUDA]Sistema de Antiboot que bani o ip de quem bota o boot - DPS|NeW| - 27.01.2012

Obrigado ajudaram muito