[Ajuda] Help ataque de hacker!!
#2

usa isso, se entrar mais que 5 IPs iguais em menos de 3 segundos o ip й banido

pawn Код:
forward clear();
public clear()
    {
    NumEntradas = 0;
    }



public OnPlayerConnect(playerid)
{
    if(IsPlayerNPC(playerid)) return 1;
    new ip[16];
    GetPlayerIp(playerid, ip, 16);
   
    if(!strcmp(ip,LastIp))
        {
        if(NumEntradas > 5)
            {
            Ban(playerid);
            }
        NumEntradas ++;
        SetTimer("clear", 3000, 0);
        }
        else
        {
        GetPlayerIp(playerid, LastIp, 16);
        NumEntradas = 0;
        }
 }
Reply


Messages In This Thread
Help ataque de hacker!! - by Weslly Stronda - 26.10.2012, 12:44
Re: Help ataque de hacker!! - by telmo_ferreira - 26.10.2012, 12:50
Re: Help ataque de hacker!! - by Weslly Stronda - 26.10.2012, 12:58
Re: Help ataque de hacker!! - by telmo_ferreira - 26.10.2012, 13:02
Re: Help ataque de hacker!! - by RoacH` - 26.10.2012, 13:03
Re: Help ataque de hacker!! - by Weslly Stronda - 26.10.2012, 13:14
Re: Help ataque de hacker!! - by Jason` - 26.10.2012, 13:23
Re: Help ataque de hacker!! - by Kmatsu - 26.10.2012, 13:47
Re: Help ataque de hacker!! - by Weslly Stronda - 26.10.2012, 13:59
Re: Help ataque de hacker!! - by Jason` - 26.10.2012, 14:02

Forum Jump:


Users browsing this thread: 1 Guest(s)