Bot Attack Help
#1

This night
Код:
[03:25:28] [join] sbAxwgi1lcPNdgR7 has joined the server (5:90.201.82.23)
[03:25:28] [join] Kvmycg1psmdXwBCn has joined the server (5:90.201.82.23)
[03:25:28] [join] zKOgEALUpLllLaSV has joined the server (5:90.201.82.23)
[03:25:28] [join] bpe7mSZKaVrrJXAI has joined the server (5:90.201.82.23)
[03:25:28] [join] yWXIOqmeeoDdFZQ0 has joined the server (5:90.201.82.23)
[03:25:28] [join] NCqDapecSQGvMiNz has joined the server (5:90.201.82.23)
[03:25:28] [join] kMaJgBBDnHxTXWFx has joined the server (5:90.201.82.23)
[03:25:28] [join] qNDDASqdcyTmqhfK has joined the server (5:90.201.82.23)
[03:25:28] [join] ifxtnI7NxjxWNBqZ has joined the server (5:90.201.82.23)
[03:25:28] [join] ocFCpeSxTLbHw7tr has joined the server (5:90.201.82.23)
[03:25:28] [join] FZVvSP1PKEvGWabj has joined the server (5:90.201.82.23)
[03:25:28] [join] lcdbaeETIvdVoOXd has joined the server (5:90.201.82.23)
[03:25:28] [join] BWSZSiSEmCNBoGQI has joined the server (5:90.201.82.23)
[03:25:28] [join] YvrSMmNgFRcWcyvQ has joined the server (5:90.201.82.23)
[03:25:28] [join] oFoaRHGQLqteJmON has joined the server (5:90.201.82.23)
[03:25:28] [join] DDpOqaCbXxPdKgVP has joined the server (5:90.201.82.23)
[03:25:28] [join] YsGzoYohKjOeZSFL has joined the server (5:90.201.82.23)
[03:25:28] [join] tEkdGRIgeltRpIdA has joined the server (5:90.201.82.23)
[03:25:28] [join] wMFpPhxfogHIqRJV has joined the server (5:90.201.82.23)
[03:25:28] [join] ESuAzT0JWRFyOlfS has joined the server (5:90.201.82.23)
[03:25:28] [join] jPOSTrlXbMnONing has joined the server (5:90.201.82.23)
[03:25:28] [join] EmRmyZbjXFoHcXrO has joined the server (5:90.201.82.23)
[03:25:28] [join] YuPyeeqBSeBtAIsV has joined the server (5:90.201.82.23)
[03:25:28] [join] LW7hOtqcwgsMZFmf has joined the server (5:90.201.82.23)
[03:25:28] [join] fPDOEe1t0LVhSJWm has joined the server (5:90.201.82.23)
[03:25:28] [join] fBsfTCSpmhJCqthu has joined the server (5:90.201.82.23)
[03:25:28] [join] ijVSIloJxKbTkYJf has joined the server (5:90.201.82.23)
[03:25:28] [join] FvtjBXRIDbOCIRMm has joined the server (5:90.201.82.23)
[03:25:28] [join] yBtiCFdD1gGsZGjR has joined the server (5:90.201.82.23)
[03:25:28] [join] JiNRtWGqYcDktlow has joined the server (5:90.201.82.23)
[03:25:28] [join] 7vvQ0wPZn1ZNSEbF has joined the server (5:90.201.82.23)
[03:25:28] [join] jkzQjOjRLVzCMPJJ has joined the server (5:90.201.82.23)
[03:25:28] [join] tyse0NmxEJMTMkbu has joined the server (5:90.201.82.23)
[03:25:28] [join] hLZvmUJ7eRFhSKid has joined the server (5:90.201.82.23)
[03:25:28] [join] oVdrAyIUNiGHorWf has joined the server (5:90.201.82.23)
[03:25:28] [join] LVvIdoeyDEJJqKki has joined the server (5:90.201.82.23)
[03:25:28] [join] NlOPMphVdsnbavUl has joined the server (5:90.201.82.23)
[03:25:28] [join] QWzYveLytfFEhwhA has joined the server (5:90.201.82.23)
[03:25:28] [join] 0fGdCAVorOfU7yKm has joined the server (5:90.201.82.23)
[03:25:28] [join] CUScspjRFXJBazLS has joined the server (5:90.201.82.23)
[03:25:28] [join] hDBZURduHDJOPNbN has joined the server (5:90.201.82.23)
[03:25:28] [join] yHrcIElPhdVDKUOb has joined the server (5:90.201.82.23)
[03:25:28] [join] 7cyayIWCONQKpkXg has joined the server (5:90.201.82.23)
[03:25:28] [join] udkEMcTTTfUCnLFd has joined the server (5:90.201.82.23)
[03:25:28] [join] TTzZNVarDEgXvFbV has joined the server (5:90.201.82.23)
[03:25:28] [join] oRFRQmaYGhatrcgq has joined the server (5:90.201.82.23)
[03:25:28] [join] nafwJSAkyRIXUDla has joined the server (5:90.201.82.23)
[03:25:28] [join] xxsgrjwXtMRughwX has joined the server (5:90.201.82.23)
[03:25:28] [join] sNIWEWuhHiOFoJLI has joined the server (5:90.201.82.23)
[03:25:28] [join] vKEuCxOHCuVeYDUh has joined the server (5:90.201.82.23)
[03:25:28] [join] EoCrNzhIfUdTpYMd has joined the server (5:90.201.82.23)
[03:25:28] [join] rOOrMlTyYlDavBJt has joined the server (5:90.201.82.23)
[03:25:28] [join] SsgKnkXPdOXaFetw has joined the server (5:90.201.82.23)
[03:25:28] [join] AyZXguAVcXKAOiOo has joined the server (5:90.201.82.23)
[03:25:28] [join] rWvydo0u7yhUKonZ has joined the server (5:90.201.82.23)
[03:25:28] [join] FWfHwcjqFbIhizFC has joined the server (5:90.201.82.23)
[03:25:28] [join] kXaXytl7dCwPKvbj has joined the server (5:90.201.82.23)
[03:25:28] [join] gekFdhBBLICneVIA has joined the server (5:90.201.82.23)
[03:25:28] [join] bfTVzsZvxJzoekhc has joined the server (5:90.201.82.23)
[03:25:28] [join] TuwiYYbVcQVJBZs1 has joined the server (5:90.201.82.23)
This is a little. This stupid kid connected more than 1000 bots (not at the same time) .

I have this under OnPlayerConnect:

Код:
new connecting_ip[32+1];
	GetPlayerIp(playerid,connecting_ip,32);
	new num_players_on_ip = GetNumberOfPlayersOnThisIP(connecting_ip);

	if(num_players_on_ip > MAX_CONNECTIONS_FROM_IP) {
		printf("MAXIPs: Connecting player(%d) exceeded %d IP connections from %s.", playerid, MAX_CONNECTIONS_FROM_IP, connecting_ip);
		Kick(playerid);
		new bs[64];
		format(bs, sizeof(bs), "BotCheck: %d is kicked!", playerid);
		SendClientMessageToAll(RED, bs);
	}
But it doesn't work. I don't know why. How to stop him ?
Reply
#2

Hi, use RyDeR's include, its the best around.
https://sampforum.blast.hk/showthread.php?tid=320649

Just include it and add the function in your gamemode. It will detect the floods and ban the IP.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)