mob
proc
AFKCHECK()
var/A
spawn(30)
if(A)
src<<"Deemed Here"
return 0
else
src<<"Deemed AFK"
return 1
A = input("Please type something in the box to show you are not AFK") as text
AFKCheck()
for(var/mob/M in world)
if(M.AFKCHECK())
del(M)
Problem description:
Lmao, There is no direct problem with it..it just doesn't work. I'm probably just going at it wrong, is there a better way to do it? client.inactivity is not what I'm looking for though, because if there clicking a button to train it resets thus allowing afk-training. (Eh, I cant spell so sorry for any spelling mistakes? xD Auto correct does wonders though)
Also, for added "anti-afk-training" you can throw in a rand() in that spawn() of yours, so they can't guess when exactly they're going to get the AFK check message, thus preventing bots ^-^