Posts: 407
Threads: 83
Joined: May 2011
Reputation:
0
What is the best way to make an afk system which would kick player when he stays afk for certain amount of minutes? I heard something like OnPlayerUpdate doesnt gets called when player is tabbed-out or somth like that
Posts: 1,102
Threads: 196
Joined: Jul 2011
Reputation:
0
you can use a timer.. when he used the cmd: /afk then set a timer with the amount of minutes you want and then put in the public function a message which says he has been kicked for being too long afk and then put there the Kick(playerid); function.