Weird problem....
#5

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.
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: 1 Guest(s)