Yume 0 Posted February 9, 2015 How would I auto disconnect a player after they afk for like 10 mins or so? Quote Share this post Link to post Share on other sites
0 mleo1 36 Posted February 10, 2015 - script kickidle -1,{OnInit: //############# C O N F I G ############# set .max_idle, 10; // seconds //####################################### check player.conf end;OnPCLoginEvent:OnSec: if( checkvending()!=2 ){ if( checkidle()==.max_idle ) atcommand "@kick " + strcharinfo(0); addtimer 1000, strnpcinfo(3)+"::OnSec"; }} test it, i did not tried it Quote Share this post Link to post Share on other sites
0 Yume 0 Posted February 16, 2015 So the script worked once but it hasn't worked since Quote Share this post Link to post Share on other sites
0 luis.seifert 10 Posted February 19, 2015 (edited) OnPCLoginEvent:while(isloggedin(getcharid(3))){OnSec: if( checkvending()!=2 ){ if( checkidle()==.max_idle ) atcommand "@kick " + strcharinfo(0); addtimer 1000, strnpcinfo(3)+"::OnSec"; }}} Edited February 19, 2015 by luis.seifert Quote Share this post Link to post Share on other sites
How would I auto disconnect a player after they afk for like 10 mins or so?
Share this post
Link to post
Share on other sites