Join flood,connect spamer
#1

So this is when someone connects with that flooder
Код:
[11:43:50] [connection] 199.188.236.98:1306 requests connection cookie.
[11:43:51] Incoming connection: 199.188.236.98:1306 id: 3
[11:43:51] [connection] 199.188.236.98:1305 requests connection cookie.
[11:43:52] Incoming connection: 199.188.236.98:1305 id: 4
[11:43:52] [join] Hacked_By_Hacker_ has joined the server (3:199.188.236.98)
[11:43:52] [connection] 199.188.236.98:1307 requests connection cookie.
[11:43:52] Incoming connection: 199.188.236.98:1307 id: 4
[11:43:53] [connection] 199.188.236.98:1308 requests connection cookie.
[11:43:53] Incoming connection: 199.188.236.98:1308 id: 4
[11:43:54] [connection] 199.188.236.98:1310 requests connection cookie.
[11:43:54] Incoming connection: 199.188.236.98:1310 id: 4
[11:43:57] [connection] 199.188.236.98:1311 requests connection cookie.
[11:43:57] Incoming connection: 199.188.236.98:1311 id: 4
[11:44:00] [connection] 199.188.236.98:1313 requests connection cookie.
[11:44:00] Incoming connection: 199.188.236.98:1313 id: 4
How can i stop those morrons,they are using proxy server?This is really urgent I need to stop this shit!!! Please Help
Reply
#2

You could use this anti-flood include.
Reply
#3

I have that same include,but still it floods...
Reply
#4

Download samp 0.3.7-R2 version it have onplayerconnect spam protection
Reply
#5

Go to this link https://sampforum.blast.hk/showthread.php?tid=504244
And scroll to connection proofing
Reply
#6

Quote:
Originally Posted by Roberto80
Посмотреть сообщение
Go to this link https://sampforum.blast.hk/showthread.php?tid=504244
And scroll to connection proofing
This?
PHP код:
// Anti NPC spoof by [uL]Pottus
forward OnAntiCheatNPCSpoof(playerid);
public 
OnPlayerConnect(playerid)
{
    if(
IsPlayerNPC(playerid))
    {
        new 
ip[16];
        
GetPlayerIp(playeridipsizeof(ip));
        if (!!
strcmp(ip"127.0.0.1"))
        {
            new 
name[MAX_PLAYER_NAME];
            
format(namesizeof(name), "%i"gettime());
            
SetPlayerName(playeridname);
            
CallLocalFunction("OnAntiCheatNPCSpoof""i"playerid);
            return 
1;
        }
    }
    if (
funcidx("AntiNPC_OnPlayerConnect") != -1)
      {
        return 
CallLocalFunction("AntiNPC_OnPlayerConnect""i"playerid);
      }
      return 
1;
}
#if defined _ALS_OnPlayerConnect
    #undef OnPlayerConnect
#else
    #define _ALS_OnPlayerConnect
#endif
#define OnPlayerConnect AntiNPC_OnPlayerConnect
forward AntiNPC_OnPlayerConnect(playerid); 
Reply
#7

Yup
Add this too;
Код:
// Anti connection spoofing patch by [uL]Pottus

forward OnAntiCheatPlayerSpoof(playerid);

static bool:PlayerConnected[MAX_PLAYERS];
static PlayerNames[MAX_PLAYERS][MAX_PLAYER_NAME];

public OnPlayerConnect(playerid)
{
	// User was already connected cheat detected
	if(PlayerConnected[playerid])
	{
		SetPlayerName(playerid, PlayerNames[playerid]);
		CallLocalFunction("OnAntiCheatPlayerSpoof", "i", playerid);
		return 1;
	}
	else
	{
		GetPlayerName(playerid, PlayerNames[playerid], MAX_PLAYER_NAME);
		PlayerConnected[playerid] = true;
	}

	if (funcidx("AntiSpoof_OnPlayerConnect") != -1)
  	{
    	return CallLocalFunction("AntiSpoof_OnPlayerConnect", "i", playerid);
  	}
  	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
	PlayerConnected[playerid] = false;

	if (funcidx("AntiSpoof_OnPlayerDisconnect") != -1)
  	{
    	return CallLocalFunction("AntiSpoof_OnPlayerDisconnect", "ii", playerid, reason);
  	}
  	return 1;
}


#if defined _ALS_OnPlayerConnect
	#undef OnPlayerConnect
#else
	#define _ALS_OnPlayerConnect
#endif
#define OnPlayerConnect AntiSpoof_OnPlayerConnect

forward AntiSpoof_OnPlayerConnect(playerid);

#if defined _ALS_OnPlayerDisconnect
	#undef OnPlayerDisconnect
#else
	#define _ALS_OnPlayerDisconnect
#endif
#define OnPlayerDisconnect AntiSpoof_OnPlayerDisconnect

forward AntiSpoof_OnPlayerDisconnect(playerid, reason);
Now,use those callbacks:
public OnAntiCheatNPCSpoof(playerid)
public OnAntiCheatPlayerSpoof(playerid)
Reply
#8

Will it work what do you think xD
Reply
#9

Try it yourself XD
Just add those,edit them,
Dowload the hack and join
Reply
#10

Ok i added it to my gm,how to test if it works? dont know what cheats
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)