02.04.2016, 03:29
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
use o SEARCH quando precisar de algo tao simples assim
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.", playerid, MAXIMO_IP, connecting_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 x = 0;
new ip_count = 0;
for(x=0; x<MAX_PLAYERS; x++) {
if(IsPlayerConnected(x)) {
GetPlayerIp(x,against_ip,32);
if(!strcmp(against_ip,test_ip)) ip_count++;
}
}
return ip_count;
}