detect if player doesn't move for x seconds?
#6

It's okay to use OnPlayerUpdate... you need to stop being scared of using it. For this exact purpose however, OnPlayerUpdate would be fine to use but UNNECESSARY. Not to mention SetTimerEx in OnPlayerUpdate would most certainly bug things out and return unexpected results...

If I were you, I would start the timer when they spawn/come back from being AFK. Kill the timer when they die/disconnect/go afk.
Reply


Messages In This Thread
detect if player doesn't move for x seconds? - by Bondz - 04.11.2016, 05:51
Re: detect if player doesn't move for x seconds? - by VVWVV - 04.11.2016, 06:28
Re: detect if player doesn't move for x seconds? - by Hansrutger - 04.11.2016, 06:32
Re: detect if player doesn't move for x seconds? - by Bondz - 04.11.2016, 07:04
Re: detect if player doesn't move for x seconds? - by Micko123 - 04.11.2016, 07:07
Re: detect if player doesn't move for x seconds? - by Threshold - 04.11.2016, 07:52
Re: detect if player doesn't move for x seconds? - by Micko123 - 04.11.2016, 08:13
Re: detect if player doesn't move for x seconds? - by Dayrion - 04.11.2016, 09:07

Forum Jump:


Users browsing this thread: 1 Guest(s)