[Ajuda] Nick: con bugando server
#1

Gente fiz de tudo pra bloquear o cara usei anti mal bot, bloqueador de nicks, troquei porta do server para ver se a porta й bugada tentei de tudo mas nгo consigo.
o cara consegue entrar, alguйm pode me dizer oque posso fazer? eu uso um VPS, poderiam me dar um rumo do que fazer?

Desde jб agradeзo.
Reply
#2

Explique melhor e poste mal bot!
Reply
#3

uma vez fui atacado com essses bot eu botei no onplayconnect isso aki tipo antbot p barrar -' mo saco

pawn Код:
if(strfind(Nome(playerid),"com1",true) != -1)
{
Ban(playerid);
}
if(strfind(Nome(playerid),"com2",true) != -1)
{
Ban(playerid);
}
if(strfind(Nome(playerid),"com3",true) != -1)
{
Ban(playerid);
}
Reply
#4

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
Explique melhor e poste mal bot!
Bom й simples o cara entra com o nick con e ele congela o server entende?


PHP код:
#include <a_samp>
#define _CHANGE_NAME_BEFORE_KICK    true
stock
    bool
:    bIllegalPlayer    MAX_PLAYERS ]    = false,
            
szTmpKickName    MAX_PLAYER_NAME ];
public 
OnFilterScriptInit( )
{
    print( 
"* Bad name protection has been enabled." );
    print( 
"* The following names are forbidden to join your server:" );
    print( 
"\tcom[1-9], lpt[1-9], clock$, nul, aux, prn, con" );
    
#if _CHANGE_NAME_BEFORE_KICK == true
    
for ( new 0MAX_PLAYER_NAMEi++ )
        
szTmpKickName] = '_';
    
szTmpKickNameMAX_PLAYER_NAME ] = '\0';
    print( 
"* The temporary name used to disconnect crashers will be:" );
    
printf"\t%s"szTmpKickName );
    
#endif
    
return 1;
}
public 
OnPlayerConnectplayerid )
{
    new
        
szPlayerNameMAX_PLAYER_NAME ];
    
bIllegalPlayerplayerid ] = false;
    
GetPlayerNameplayeridszPlayerNameMAX_PLAYER_NAME );
    if ( !
strcmpszPlayerName"com"true) || !strcmpszPlayerName"lpt"true) )
    {
        if ( 
szPlayerName] >= '0' && szPlayerName] <= '9' && szPlayerName] == '\0' )
            return 
aKickplayeridszPlayerName );
    }
    else if ( !
strcmpszPlayerName"clock$"true) )
        return 
aKickplayeridszPlayerName );
    else
    {
        static const
            
szForbiddenName[ ][ ] =
            {
                
"nul""aux",
                
"prn""con"
            
};
        for ( new 
0sizeofszForbiddenName ); i++ )
        {
            if ( !
strcmpszPlayerNameszForbiddenName], true) )
                return 
aKickplayeridszPlayerName );
        }
        
#if _CHANGE_NAME_BEFORE_KICK == true
        // Players cannot join with our temporary kicking name either...
        // this name is "________________" by default which you probably don't want anyways.
        
if ( !strcmpszPlayerNameszTmpKickNametrueMAX_PLAYER_NAME ) )
            return 
aKickplayeridszPlayerName );
        
#endif
    
}
    return 
1;
}
public 
OnPlayerDisconnectplayeridreason )
{
    if ( 
bIllegalPlayerplayerid ] )
    {
        
bIllegalPlayerplayerid ] = false;
        return 
0;
    }
    return 
1;
}
stock aKickplayeridpname[ ] )
{
    new
        
szIP16 ];
    
bIllegalPlayerplayerid ] = true;
    
#if _CHANGE_NAME_BEFORE_KICK
    
SetPlayerNameplayeridszTmpKickName );
    
#endif
    
GetPlayerIpplayeridszIP16 );
    
SendClientMessageplayerid0xFFFFFFFF"SERVER: You have been because you have an illegal nickname." );
    
Kickplayerid );
    
printf"[protect] %s (%d:%s) was kicked for an illegal nickname."pnameplayeridszIP );
    return 
0;

Reply
#5

Tenta usar isto: https://sampforum.blast.hk/showthread.php?tid=384222
Reply
#6

Quote:
Originally Posted by ShutDown_
Посмотреть сообщение
jб usei parecidos mas testarei tambйm.
Reply
#7

Sem chance, quero saber pq alguns servidores vocк consegue entrar com esse nick atй jogar.
Reply
#8

Quote:
Originally Posted by cawlv
Посмотреть сообщение
Sem chance, quero saber pq alguns servidores vocк consegue entrar com esse nick atй jogar.
Creio que esses nicks sу crashem servidores em Windows.
Em servidores hospedados com sistema operacional Linux, simplismente nгo acontece nada, da pra jogar fazer qualqer coisa.
Reply
#9

Coloca isso aki na public OnPlayerConnect
pawn Код:
public OnPlayerConnect(playerid)
{
    new Bots[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Bots, MAX_PLAYER_NAME);
    if(!strcmp("con", Bots, true)  || !strcmp("aux", Bots, true)  || !strcmp("com4", Bots, true) || !strcmp("com8", Bots, true)
    || !strcmp("lpt3", Bots, true) || !strcmp("lpt7", Bots, true) || !strcmp("com1", Bots, true) || !strcmp("com5", Bots, true)
    || !strcmp("com9", Bots, true) || !strcmp("lpt5", Bots, true))
    {
        SetPlayerName(playerid, "O_Mais_Lixo");
        BanEx(playerid, "Anti-Bot");
        return 1;
    }
Reply
#10

Servidores que й permitido a entrada sгo hospedados por linux.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)