21.01.2016, 23:04
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);