[Ajuda] Anti- H-A-C-KґS
#4

ANTI H-A-C-KґS

cara anti ip tem esse do brunoip que eu aconselho и bom da pra da uma otimizada nesse cod ai mas
pra voce ter uma base и iso
http://pastebin.com/9Kxsp35c
e tem esse outro mais simples que vem junto ao samp

PHP код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#define MAXIMO_IP     1 // AQUI DEFINE 1 IP APENAS POR MAQUINA
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
    print(
"\nDETONA SAMP OWNA !!");
    print(
" FS ANTI IP'S");
    print(
"DETONASAMPOFICIAL.BLOGSPOT.COM\n");
    return 
1;
}
#endif
public OnPlayerConnect(playerid)
{
// KIKA SE TIVER MAIS DE 1 IP CONECTADO AO MESMO TEMPO
    
new connecting_ip[32+1];
    
GetPlayerIp(playerid,connecting_ip,32);
    new 
num_players_on_ip GetNumberOfPlayersOnThisIP(connecting_ip);
    if(
num_players_on_ip MAXIMO_IP) {
        
printf("MAXIPs: Connecting player(%d) exceeded %d IP connections from %s."playeridMAXIMO_IPconnecting_ip);
        
Kick(playerid);
        return 
1;
    }
    return 
1;
}
stock GetNumberOfPlayersOnThisIP(test_ip[])
{
//AQUI O LOOP PRA VERIFICAЗAO SE TEM MAIS IPS CONECTADOS
    
new against_ip[32+1];
    new 
0;
    new 
ip_count 0;
    for(
x=0x<MAX_PLAYERSx++) {
        if(
IsPlayerConnected(x)) {
            
GetPlayerIp(x,against_ip,32);
            if(!
strcmp(against_ip,test_ip)) ip_count++;
        }
    }
    return 
ip_count;

use o SEARCH quando precisar de algo tao simples assim
Reply


Messages In This Thread
Anti- H-A-C-KґS - by TUIDAN - 02.04.2016, 00:39
Re: Anti- H-A-C-KґS - by ZombieSmash - 02.04.2016, 01:26
Re: Anti- H-A-C-KґS - by ipsLuan - 02.04.2016, 03:01
Re: Anti- H-A-C-KґS - by LiiPe - 02.04.2016, 03:29
Re: Anti- H-A-C-KґS - by bruxo00 - 02.04.2016, 13:13

Forum Jump:


Users browsing this thread: 1 Guest(s)