Max Registrations From IP
#5

pawn Код:
forward OnRegistrationCheck(playerid, delay);
public OnRegistrationCheck(playerid, delay)
{
    if(delay == 0)
    {
        if(cache_get_row_count() >= 3)
        {
            SendClientMessage(playerid, COLOR_WHITE, "{ff0000}[Server]:{ffffff} You have reached the max registered accounts on this IP, please use your previous account.");
            SetTimerEx("OnRegistrationCheck",400,false,"ii",playerid,1); // kick must be delayed few ms
        }
    }
    else
    {
        Kick(playerid);
    }
    return 1;
}
+
in tquery

pawn Код:
"OnRegistrationCheck", "ii", playerid,0);
you should search delayed Kick/Ban include
Reply


Messages In This Thread
Max Registrations From IP - by yvoms - 21.01.2016, 22:21
Re: Max Registrations From IP - by Jefff - 21.01.2016, 22:25
Re: Max Registrations From IP - by Vince - 21.01.2016, 22:33
Re: Max Registrations From IP - by yvoms - 21.01.2016, 22:34
Re: Max Registrations From IP - by Jefff - 21.01.2016, 23:04
Re: Max Registrations From IP - by yvoms - 21.01.2016, 23:14

Forum Jump:


Users browsing this thread: 2 Guest(s)