20.10.2011, 21:04
Hi guys.
Just a fast question on how to detect movement.
Well, i want to make a AFK system, that automatically puts a player in AFK mode if he hasn't moved for 2 minutes.
So how do I detect whether he has moved for 2 minutes or not?
I thourght about making a timer that gets the players position, and if he then is at the same position after 2 minutes, it will turn him AFK.
But maybe there is an easier way?
Thank you.
Just a fast question on how to detect movement.
Well, i want to make a AFK system, that automatically puts a player in AFK mode if he hasn't moved for 2 minutes.
So how do I detect whether he has moved for 2 minutes or not?
I thourght about making a timer that gets the players position, and if he then is at the same position after 2 minutes, it will turn him AFK.
But maybe there is an easier way?
Thank you.