Yeah but it’s pretty buggy, as in people will be dead and get kicked every if they are typing in chat or walking around.
Hmmm typing i could understand, but while beining dead (well okay if you lay there for about 5 minutes, yup … else it should not kick, same fo when walking around though)
1 Like
alright finished my little project.
download it here and test it out:
afkask.7z (1.3 KB)
name it how you want.
requirements:
- mysql-async
- users table in your databank
how it works:
It takes your rank from the databank, this way you don’t need to register every user that is allowed to use the afkkick command.
it does count down from 20 to 0, just raise it to 120 to get your 2 minutes.
right here:
if timeleft == nil then
timeleft = 20 -- raise to 120 for 120 seconds (2minutes)
end
after it has counted to 0 the players will get kicked. (if they have a user rank)
if they press ’ H ’ before the countdown ends, they get a message that they agreed to not be AFK.
I want to give the rights to Re-release the resource to Fourthbeam, because I will NOT upload it anywhere else than here. (I hope that it is understandable to credit me when re-releasing this)
Have a nice day, and use it like you want 
take a 
2 Likes
People saying they weren’t kicked after letting the timer expire. 
umm, ok I take a look into it tomorrow. I tested it and it should work if your rank is ‘user’ make sure to rename it if your main group has another name.
The main group that most players are definitely ‘user’. Hmm.
did you test it before on a test server? and of course did that work?
Don’t have a test server, just a main one.