Kick timer system?
#2

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;

Reply


Messages In This Thread
Kick timer system? - by spyro9696 - 02.01.2018, 15:48
Re: Kick timer system? - by RogueDrifter - 02.01.2018, 15:53
Re: Kick timer system? - by Romz - 02.01.2018, 15:55
Re: Kick timer system? - by spyro9696 - 02.01.2018, 16:03
Re: Kick timer system? - by spyro9696 - 02.01.2018, 16:07
Re: Kick timer system? - by jasperschellekens - 02.01.2018, 16:15
Re: Kick timer system? - by DaniceMcHarley - 04.01.2018, 20:45

Forum Jump:


Users browsing this thread: 1 Guest(s)