09.11.2014, 22:42
Maybe something like this?
I do not know if this will work, how-ever it should give an example of how things like this can (maybe) be prevented.
pawn Code:
new LastConnection = 0;
public OnIncomingConnection(playerid, ip_address[], port)
{
if(LastConnection > 3)
{
BlockIpAddress(ip_address, 60 * 10000);
LastConnection = 0;
return 1;
}
LastConnection++;
SetTimer("UpdateLastConnection", 2500, false);
return 1;
}
forward UpdateLastConnection();
public UpdateLastConnection() return LastConnection = 0;