afk - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: afk (
/showthread.php?tid=323902)
afk -
BaubaS - 07.03.2012
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
Re: afk -
niels44 - 07.03.2012
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.