[Pedido] Ban Serial
#1

Bano os hack, e eles troca IP e nick e volta
quero por um ban serial para fuder com eles

alguem ajuda
plis

+rep pra quem ajudar
Reply
#2

Ranger ban...
DК uma olhada no tуpico do IPSBRUNO.
https://sampforum.blast.hk/showthread.php?pid=995162#pid995162

Code que eu achei:

pawn Код:
#include <a_samp>

#pragma tabsize 4

#define MAX_SWEARS 1000
#define STR 1000

new Swears[MAX_SWEARS][STR];
new num_words = 0;

public OnFilterScriptInit()
{
new string[STR], File:file;
if((file = fopen("FaixasIP.ini",io_read)))
{
while(fread(file,string))
{
for(new i = 0, j = strlen(string); i < j; i++) if(string[i] == '\n' || string[i] == '\r') string[i] = '\0';
Swears[num_words] = string;
printf("%s", string);
num_words++;
}
fclose(file);
}
return 1;
}

public OnPlayerConnect(playerid)
{
static ipplayer[16];
GetPlayerIp(playerid, ipplayer, sizeof(ipplayer));

for(new s = 0; s < num_words; s++)
{
if(strfind(ipplayer, Swears[s],true) != -1)
{
SendClientMessage(playerid,0x33AAFFFF,"Sua Faixa de IP esta Banida");
Ban(playerid);
}
}
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/ban", true) == 0)
{
static ipplayer[16];
GetPlayerIp(playerid, ipplayer, sizeof(ipplayer));
new string[1000];

format(string, 256, "%s\r\n" ,ipplayer);
ArmazenarFaixaIP(string);

Ban(playerid);
return 1;
}
return 0;
}

stock ArmazenarFaixaIP(const string[])
{
new File:HF = fopen("FaixasIP.ini",io_append);
fwrite(HF, string);
fclose(HF);
}
E vк se funciona e me diz hehehe'
Reply
#3

esse ae sу irб banir a inicial do IP

preciso de um para banir o serial do PC
Reply
#4

Noobster157 Se tem algo do gкnero ?

Ia me ajudar tambйm. xP.
Reply
#5

eu ja consegui alguns sistema desse de banir serial do pc, mais nenhum foi eficiente, alguns bugados, outros nem funfo '-'

ja q tu quer tbm, vamo ver se alguem nos ajuda
Reply
#6

gpci, nunca consegui criar uma funзгo... para banir mais procura ai...
Reply
#7

Nгo existe nenhuma funзгo do SAMP para isso, NEM PODE existir. Sу com um programa alheio ao SAMP. Por exemplo, cria um programa noutra linguagem para getar o Serial do HD ou o MacIP (por exemplo) e manda para o servidor por MySQL. Mas para isso, iria ter de programar um software desses e ligar no servidor, e tambйm ter uma base de dados online.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)