02.01.2018, 15:53
there's nothing such as a kick timer system lol simply use SetTimerEx here's an example of what you want, recall that i said EXAMPLE so don't just copy paste this in your script:
PHP код:
#define CHECK_TIME_IN_SECONDS 50 //time in seconds to check after player connects (50 here)
public OnPlayerConnect(playerid)
{
SetTimerEx("KickLogCheck",CHECK_TIME_IN_SECONDS*1000,false,"d",playerid);//the timer
return 1;
}
forward KickLogCheck(playerid);
public KickLogCheck(playerid)//the function called by the timer after the time
{
if(!IsPlayerLoggedIn[playerid])//if the player didnt login after the time passed
{
Kick(playerid);//kick him
}
return 1;
}