View Single Post
Old 12/04/2015, 09:47 PM   #6
bobsona
Big Clucker
 
Join Date: Feb 2014
Posts: 101
Reputation: 1
Default Re: Weird problem....

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.
bobsona is offline   Reply With Quote