SA-MP Forums Archive
[FilterScript] Useful 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Useful AFK (/showthread.php?tid=306479)



Useful AFK - coole210 - 26.12.2011

Alright so I've seen a lot of these AFK scripts where you actually type a command to inform that you're going AFK. This one will detect if a player isn't moving or is in ESC mode and set them to AFK accordingly, player color and virtual world changes when state changes from AFK to BACK and vice-versa.

You can use this as a FilterScript or add it to your GM.

Explanation:

Код:
(After connecting and spawning..)

coole210 stands still for 60 seconds (Now AFK)
coole210 moves (Now BACK)
coole210 goes in ESCAPE mode (Now AFK)
coole210 moves (Now BACK)
http://pastebin.com/rs4xefZm

edit: woops sorry, forgot to add the SetTimer function in the code, pastebin changed


Respuesta: Useful AFK - [Nikk] - 26.12.2011

Nice one men. Not the best afk system, but nice


Re: Useful AFK - Serbish - 26.12.2011

So far good.
It sets the player into a virtual world when the player is AFK.
You could probably add a text to let the players know who went AFK.


Re: Useful AFK - Astralis - 27.12.2011

Quote:
Originally Posted by Serbish
Посмотреть сообщение
So far good.
It sets the player into a virtual world when the player is AFK.
You could probably add a text to let the players know who went AFK.
AFK before the name and afk list.


Re: Useful AFK - Penki4a - 15.08.2012

+rep


Re: Useful AFK - shaniyal - 15.08.2012

S.S