[Ajuda] Estгo derrubando meu servidor pela rcon
#1

Estгo derrubando meu servidor pela rcon, jб tentei desativar colocando , rcon:0 , mais nгo adianta, ja coloquei ant rcon sу pro meu nick logar na rcon, mais o cara entra no jogo usa algum programa e derruba o server muito rapido, olha o que aparece no server_log:
[12:03:48] RCON (In-Game): Player #1 (storm) <zm/h3> failed login.
[12:03:48] RCON (In-Game): Player #1 (storm) <e8/h3> failed login.
[12:03:48] RCON (In-Game): Player #1 (storm) <)MKh3> failed login.
[12:03:48] RCON (In-Game): Player #1 (storm) <AT|f> failed login.
[12:03:48] RCON (In-Game): Player #1 (storm) <)R)n9> failed login.
[12:03:48] RCON (In-Game): Player #1 (storm) <y0tMb8�> failed login.
[12:03:48] RCON (In-Game): Player #1 (storm) <,a})h$w�> failed login.
[12:03:48] RCON (In-Game): Player #1 (storm) <mZDfNmiN> failed login.
[12:03:48] RCON (In-Game): Player #1 (storm) <m^,1a@VuE> failed login.
[12:03:48] RCON (In-Game): Player #1 (storm) <1!uxtWN`k?> failed login.
[12:03:49] RCON (In-Game): Player #1 (storm) <^i#dQ+C6@sP> failed login.
[12:03:49] RCON (In-Game): Player #1 (storm) <jY.7`gx%pU-C> failed login.
[12:03:49] RCON (In-Game): Player #1 (storm) <=VPUwaZ`-MF!Q> failed login.
[12:03:49] RCON (In-Game): Player #1 (storm) <:<*BKf:Wc"qA&}0> failed login.
[12:03:49] RCON (In-Game): Player #1 (storm) <{q2C(E{Z'Vw~~> failed login.
[12:03:49] RCON (In-Game): Player #1 (storm) <%O@U^.qIdRZCNs{\> failed login.
[12:03:49] RCON (In-Game): Player #1 (storm) <]R!3(PsA4F/"3O"vA> failed login.
[12:03:49] RCON (In-Game): Player #1 (storm) <kzd5"cK!f~T/b.;%C"> failed login.
[12:03:49] RCON (In-Game): Player #1 (storm) <bn.{>tj?B>(73R>4ctn�U> failed login.
[12:03:49] RCON (In-Game): Player #1 (storm) <+[<@kke(:z9CQ&c8q}agU> failed login.
[12:03:49] RCON (In-Game): Player #1 (storm) <o"Bec9'n4K&%c,*d=NkFL> failed login.
[12:03:49] RCON (In-Game): Player #1 (storm) <x?F,A6p|U+\\vPF~F.!nE?�?> failed login.
[12:03:49] RCON (In-Game): Player #1 (storm) <r#kAfxl7;Q^}x_3$,-VYJwZ�?> failed login.
[12:03:49] RCON (In-Game): Player #1 (storm) <-9?CS3+U)s2E(fH3h'wHb6]5G��> failed login.
[12:03:49] RCON (In-Game): Player #1 (storm) <~Qsu@&UzBSGFY('O1/DwK*C5?> failed login.
[12:03:49] RCON (In-Game): Player #1 (storm) <=s(V)2i9PlGuc#%z0DE^oV}Fe%}u�> failed login.
[12:03:49] RCON (In-Game): Player #1 (storm) <c*s$:Cm{u+I#,>>$nAK2y,$fvN> failed login.
[12:03:49] RCON (In-Game): Player #1 (storm) <B;hoc6l\/?i4&T\u=Ukr=g0L3o> failed login.
[12:03:49] RCON (In-Game): Player #1 (storm) <l+9C5`9nmx['bB@rt{z`/Guq\`u> failed login.
[12:03:50] RCON (In-Game): Player #1 (storm) <M"ke}LwV5RT~o%;b'sMJ3AT=b4J$7^��> failed login.
[12:03:50] RCON (In-Game): Player #1 (storm) </Kp0\LfN8Ec9gkdp"OZ%3:}U)bCI|H9> failed login.
[12:03:50] RCON (In-Game): Player #1 (storm) <8=I(Ix43+b4qDRFeLGUu)_.5+JzBDd!vrb> failed login.
[12:03:50] RCON (In-Game): Player #1 (storm) <=KWXK''k*1.l0~i>v?ifnUVZ1"a|b!yk@T!> failed login.
[12:03:50] RCON (In-Game): Player #1 (storm) <Ws!ADY!_s#jD=O/c6dxD>-)=.]xd03@BUb> failed login.
[12:03:50] RCON (In-Game): Player #1 (storm) <Kz.VKd&V4$Ajf7^v%+V(rrg_KZ6KlVmA73%> failed login.
[12:03:50] RCON (In-Game): Player #1 (storm) <GtZWN^9n(|.-M@S;+ktfl"5l$;h?fHHzU> failed login.
[12:03:50] RCON (In-Game): Player #1 (storm) <'D5va}<RaSTwEm~^$No;v!46oX"FT*+}\+1fG�> failed login.


Ai o servidor cai, fica offline, se alguem puder me ajudar....
Reply
#2

Coloque isto no seu gamemode .

BY: WIKI-SAMP

https://sampwiki.blast.hk/wiki/OnRconLoginAttempt

PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(!
success
    {
     
//   printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);
        
static pip[16];
        
pip[0] = EOS;
        for(new 
iGetMaxPlayers(); != x; ++i)
        {
            if(
IsPlayerConnected(i))
            {
                
GetPlayerIp(ipipsizeof(pip));
                if(!
strcmp(ippiptrue)) 
                {
                    
BanEx(i"Bad Password");
                }
            }
        }
    }
    return 
1;

Reply
#3

Eu uso uma fs assim e nгo adiantou olha:


#include <a_samp>

public OnRconLoginAttempt(ip[], password[], success)
{
if(success) //if login is successfull
{
new IP[32];
for(new p=0;p<MAX_PLAYERS;p++) //Make loop
{
GetPlayerIp(p,IP,32);
if(!strcmp(ip,IP,true)) //if player's IP matches with IP that logged into RCON
{
new name[24];
GetPlayerName(p,name,24);
if(strcmp(name,"[STT]Atirador[DN]",false)) BanEx(p,"Breaking RCON Password Or Server Fail"); //Change Mexix to your in-game name, when a player loging in with the right IP and this Script is loaded, then he get automatycally banned.
}
}
return 1;
}
return 1;
}
Reply
#4

Pois entгo teste o code da wiki ... , se nгo obtiver кxito ,fala ae que vo tentar ajudar ..
Reply
#5

Meu ip nгo й fixo, vou tomar ban, este code, irб banir quem tentar logar na rcon com ip errado.
Reply
#6

como seu ip nгo й fixo? se vocк nгo desligar seu modem ele nгo muda o ip, e quando vc reiniciar o modem, apenas altera o ip no code e pronto
Reply
#7

Quote:
Originally Posted by neymar1477
Посмотреть сообщение
Meu ip nгo й fixo, vou tomar ban, este code, irб banir quem tentar logar na rcon com ip errado.
Lol pelo visto voce nao sabe nada de pawn ... Este code apenas bane Quem tenta logar na rcon e erra a senha ..
Reply
#8

Ok, estou colocando no GameMode, se resolver o problema eu aviso !
Reply
#9

Quote:
Originally Posted by shittt
Посмотреть сообщение
Lol pelo visto voce nao sabe nada de pawn ... Este code apenas bane Quem tenta logar na rcon e erra a senha ..
Eu coloquei no GM, e testei, coloquei uma senha errada, e nгo fui banido !!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)