SA-MP Forums Archive
[AJUDA] Bots ocupando slots - 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] Bots ocupando slots (/showthread.php?tid=280199)



[AJUDA] Bots ocupando slots - Colgate - 30.08.2011

Minha situaзгo estб complicada, jб tentei de tudo, os bots continuam ocupando slots do meu servidor.

Olhem o Anti-Bot que eu montei mesmo assim nгo funciona:


pawn Код:
public OnPlayerConnect(playerid)
{
    new PlayerIp[16][2], cons;
    GetPlayerIp(playerid, PlayerIp[0], 16);
    for(new i; i < MAX_PLAYERS; i++)
    {
        GetPlayerIp(i, PlayerIp[1], 16);
        if(strcmp(PlayerIp[0], PlayerIp[1], true) == 0)
        {
            cons++;
        }
    }
    if(cons > 3)
    {
        new s[126];
        format(s,126,"banip %s",PlayerIp[0]);
        SendRconCommand(s); Ban(playerid);
    }
    ////////////////////////////////////////////////////
    new PlayerIP[16]; GetPlayerIp(playerid,PlayerIP,24);
    if(strcmp(PlayerIP,"255.255.255.255",true) == 0)
    {
       
        SendRconCommand("banip 255.255.255.255");
        Ban(playerid);
    }
    return 1;
}

Grato!


Re: [AJUDA] Bots ocupando slots - Colgate - 30.08.2011

Nгo deu certo :S


nгo da pra kickar/banir alguйm que nгo estб conectado...mas estб ocupando slots ¬¬"


Re: [AJUDA] Bots ocupando slots - [BEP]AcerPilot - 30.08.2011

Os bots SEMPRE ocuparam e SEMPRE ocuparгo slots do server. Mas acho que hб um fs que te permite usar streamer em bots, que nгo vai te gastar slots, procura por bot streamer.


Re: [AJUDA] Bots ocupando slots - Vai_Besta - 30.08.2011

Quote:
Originally Posted by [BEP]AcerPilot
Посмотреть сообщение
Os bots SEMPRE ocuparam e SEMPRE ocuparгo slots do server. Mas acho que hб um fs que te permite usar streamer em bots, que nгo vai te gastar slots, procura por bot streamer.
ele nгo esta falando de NPCs e sim de BOTs


Re: [AJUDA] Bots ocupando slots - Colgate - 30.08.2011

Quote:
Originally Posted by [BEP]AcerPilot
Посмотреть сообщение
Os bots SEMPRE ocuparam e SEMPRE ocuparгo slots do server. Mas acho que hб um fs que te permite usar streamer em bots, que nгo vai te gastar slots, procura por bot streamer.
Nгo й esse tipo de BOT, vocк ta falando do NPC...esse BOT que estou falando й pessoas atacando o servidor, colocando bots e ocupando os slots...


Re: [AJUDA] Bots ocupando slots - [BEP]AcerPilot - 30.08.2011

Hum, me enganei, desculpe..

Procure entгo por anti bot no search, acho que existem vбrios, sempre vejo um quando procuro alguns pedacos de cуdigo.

Tambйm fale com tua empresa de hosting sobre a protecгo contra ddos, sobre os ataques.


Re: [AJUDA] Bots ocupando slots - ErickOwnZ - 31.08.2011

Eu uso rcon 0... ele funciona a maioria das vezes amigo


Re: [AJUDA] Bots ocupando slots - [NWD]Jim._.Carrey - 31.08.2011

Quote:
Originally Posted by ErickOwnZ
Посмотреть сообщение
Eu uso rcon 0... ele funciona a maioria das vezes amigo
І Melhor opзгo, pois estб difнcil evitar ataques, muda seu sistema de admin para variбvel


Re: [AJUDA] Bots ocupando slots - KevinsL - 31.08.2011

no sa-mp ja vem um fs que limita o numero de conexхes por ip...


Re: [AJUDA] Bots ocupando slots - Colgate - 31.08.2011

Quote:
Originally Posted by [NWD]Jim._.Carrey
Посмотреть сообщение
І Melhor opзгo, pois estб difнcil evitar ataques, muda seu sistema de admin para variбvel
Meu servidor tambйm nгo tem rcon, caso alguйm tente logar no rcon ou entre toma ban, uso como variavel tambйm...e se por acaso tiver algum adm de rcon no servidor toma ban automatico...


mas a questгo do Anti-Bot ninguйm sabe? como resolver?