[REQUEST] Auto Dc

06/28/2009 23:44 Pete1990#1
Can anyone Maybe help me make an Auto Dc where if they dont move after 10mins it Dc's Them? im useing a 5017 source.
06/28/2009 23:53 Pete1990#2
Im asking for help meaning someone start me off and i can finsh it grrr
06/29/2009 00:01 _tao4229_#3
add a variable to the client or character class
whenever you receive a walkpacket or jump packet assign the the variable environment.tickcount or timegettime()
in some loop/timer (where stamina is even) check if that variable + 1000 * 10 * 60 < environment.tickcount
if so disconnect

ok
06/29/2009 00:05 Singah#4
Or if the stamina is set to 100 for (start a timer, for 10 minutes? then you just you the void quit? or dc w.e it is?) until a walk or jump packet is received?
06/29/2009 00:46 Pete1990#5
Thanks
06/29/2009 03:10 _Emme_#6
I belive I released some sort of code that sends a player to a map if he/she is inactive for 10 minutes. Look for it if you need futher help.

#closed