Jump to content
  • 0

Problema boti


Question

Posted

Salut de un timp de vreme îmi intra boti pe server,  ii banez pe ip pe nume dar tot intra imediat am încercat și câteva filescript uri, fără folos 

3 answers to this question

Recommended Posts

  • 0
Posted
Acum 29 minute, opy a spus:

Salut de un timp de vreme îmi intra boti pe server,  ii banez pe ip pe nume dar tot intra imediat am încercat și câteva filescript uri, fără folos 

Daca asa zis-ul "hacker" are IP dinamic (ca majoritatea celor din RDS) si isi da restart la calculator ... revine iar cu boti, spam si chiar flood, de ce nu>

Deci ... nu este o solutie.

  • Upvote 1

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

  • 0
Posted (edited)
La 22.12.2016 la 16:29, Spmn a spus:

Limitezi conexiunile de pe un IP intr-un interval X de timp.

Sau se poate loga cu rconul /rcon login parola

 

/rcon ban id-ul botului, si acesta nu va mai intra pana nu isi va schimba ip-ul.

 

Daca are VPN, ii banezi toate ip-urile, sau ii dai ban pana se plictiseste.

Sau poti folosii asta la OnPlayerConnect (nu l-am testat, dar ar trebuii sa functioneze, l-am facut destul de avansat, in cat are abilitatea de a detecta daca sunt sau nu boti pe server).

	new IP[16],rezultate = 0,stocareid[50];
	GetPlayerIp(playerid, IP, 16);
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
			new IP2[16];
			GetPlayerIp(playerid, IP2, 16);
			if(strcmp(IP, IP2, true) == 0)
			{
				stocareid[rezultate] = i;
				rezultate++;
			}
		}
	}
	if(rezultate > 1)
	{
		Kick(playerid);
	}
	if(rezultate > 4)
	{
		for(new i = 0; i < rezultate; i++)
		{
			if(IsPlayerConnected(stocareid[i]))
			{	
				Ban(stocareid[i]);
			}	
		}
	}

 

Edited by RWRobiBG

                        

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.