[AYUDA] Bots Flooder Reconecciуn
#7

Esa es, da el ban pero el wey sigue entrando con otros nicks, no se x q sigue entrando :S


PHP код:
#define MAX_R_ATTEMPTS 4
new    JoinAttemptsJoinIP[16], OutIP[16];
static 
OutingIP;
#define CallBack:%0(%1) forward%0(%1); public%0(%1)
public OnPlayerConnect(playerid)
{
new 
CurIP[16];
GetPlayerIp(playeridCurIPsizeof CurIP);
        if(!
strcmp(CurIPJoinIPfalse))
        {
        
JoinAttempts++;
        if (
JoinAttempts >= MAX_R_ATTEMPTS)
        {
            
format(JoinIP,sizeof(JoinIP),"_");
            
format(string2,sizeof(string2),"[ANTI-BOT]: Bot/Kick [Flooder Reconexiуn] %s [%i] a Sido Baneado!",pName(playerid),playerid);
             
SendClientMessageToAll(red,string2);
             
ShowPlayerDialog(playerid1DIALOG_STYLE_MSGBOX""COL_ROJO"Advertencia - Exterminio Latino",""COL_BLANCO" Has sido Baneado del Servidor \n\n"COL_ROJO"Razуn: "COL_BLANCO"Flooder Reconexiуn""Aceptar""") ;
            
SetTimerEx("DarBan"100,0,"d",playerid);
            return 
1;
        }
        }
        else 
JoinAttempts 0;
        
GetPlayerIp(playeridJoinIPsizeof(JoinIP));
        if(!
strcmp(CurIPOutIPfalse) && (GetTickCount()-OutingIP 3500))
        {
        
format(OutIP,sizeof(OutIP),"_");
        
format(string2,sizeof(string2),"[ANTI-BOT]: Bot/Kick [Flooder Reconexiуn] %s [%i] a Sido Baneado!",pName(playerid),playerid);
        
SendClientMessageToAll(red,string2);
        
ShowPlayerDialog(playerid1DIALOG_STYLE_MSGBOX""COL_ROJO"Advertencia - Exterminio Latino",""COL_BLANCO" Has sido Baneado del Servidor \n\n"COL_ROJO"Razуn: "COL_BLANCO"Flooder Reconexiуn""Aceptar""") ;
        
SetTimerEx("DarBan"100,0,"d",playerid);
        return 
1;
        }
return 
1;
        }
CallBackDarBan(playerid)
{
  
Ban(playerid);
  return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)