01-14-2016, 06:37 AM
(01-12-2016, 01:20 AM)thatguy3339 Wrote: Except, you could easily tape down the forward key and then walk away as well. Not to mention, is there even a way to track key presses of players?
Programming wise, this would be easy. If the same key is pressed down for a number of minutes, the player is marked as AFK.
Theoretically, you could hook up a key listener that notes the server time per key press.
if {isKeyPress == true; serverTime >= lastKeyPressTime + 5} {
isAFK = true
}