SA-MP Forums Archive
afk check ? - 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 check ? (/showthread.php?tid=498472)



afk check ? - karolis11234 - 03.03.2014

is there a way to check if a player is afk and run a function ?


Re: afk check ? - Beckett - 03.03.2014

Yes you can.
OnPlayerUpdate- either check if the player is in the same position for the X time then do what you want (not afk players might be kicked 2 if they stand in the same XYZ)
OnPlayerUpdate - check again if the player in the same position then display a dialog, when the dialog displays set another time which checks if he didnt answer(RESPONSE) kick him.


Re: afk check ? - karolis11234 - 03.03.2014

can you show me an example ?


Re: afk check ? - Luis- - 03.03.2014

Not related to 0.3z is it?


Re: afk check ? - karolis11234 - 03.03.2014

well i puted it here because i use 0.3z server.


Re: afk check ? - Luis- - 03.03.2014

Other people use 0.3z, do you see anyone else posting here?