24.06.2013, 11:06
I'll try to explain from what I believe you ask for.
Where "1000*60*10" is actually:
Anytime you need to cancel this timer, just use:
And ofcourse you'd have to state a function for:
Hope it helps!
pawn Code:
new timer = SetTimerEx("KickInactivePlayers",1000*60*10,true,playerid);
forward KickInactivePlayers(playerid);
public KickInactivePlayers(playerid)
{
if(!IsPlayerActive(playerid)) Kick(playerid);
return 1;
}
Code:
1000 milliseconds * 60 (= 1 minute) * 10 (= 10 minutes)
pawn Code:
KillTimer(timer);
pawn Code:
IsPlayerActive(playerid)