help limit ips
#1

how to make a simple ips limiter


this code is bug
Код:
public OnPlayerConnect(playerid)
{
    if(IsPlayerNPC(playerid)) {
        new server_IP[16];
        format(server_IP, 16, "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;
}
Reply


Messages In This Thread
help limit ips - by nbx2000 - 18.06.2018, 18:57
Re: help limit ips - by Calisthenics - 18.06.2018, 20:42
Re: help limit ips - by nbx2000 - 19.06.2018, 01:03
Re: help limit ips - by Gameluner - 19.06.2018, 03:47
Re: help limit ips - by GTLS - 19.06.2018, 06:27

Forum Jump:


Users browsing this thread: 1 Guest(s)