Weird problem....
#6

Quote:
Originally Posted by BleverCastard
View Post
They're going to be using bots to connect if it's that quick.

PHP Code:
public OnPlayerConnect(playerid)
{
    if(
IsPlayerNPC(playerid)) {
        new 
server_IP[16];
        
format(server_IP16"127.0.0.1");
        if(
strcmp(ConnIP,server_IP,true) != 0) {
            
Ban(playerid); // Ban is the safest thing here, as if you kick, they can still flood you with endless connections
            
return 0;
        }
    } 
    return 
1;

Credit: Roperr.
Doesn't work for this attack.
Reply


Messages In This Thread
Weird problem.... - by Stoyanov - 12.04.2015, 15:43
Re: Weird problem.... - by BleverCastard - 12.04.2015, 15:55
Re: Weird problem.... - by Stoyanov - 12.04.2015, 15:59
Re: Weird problem.... - by bobsona - 12.04.2015, 20:31
Re: Weird problem.... - by BleverCastard - 12.04.2015, 20:35
Re: Weird problem.... - by bobsona - 12.04.2015, 21:47
Re: Weird problem.... - by Stoyanov - 12.04.2015, 21:49
Re: Weird problem.... - by bobsona - 12.04.2015, 22:02
Re: Weird problem.... - by Stoyanov - 12.04.2015, 22:03
Re: Weird problem.... - by Stoyanov - 12.04.2015, 22:11

Forum Jump:


Users browsing this thread: 2 Guest(s)