[FilterScript] [FS]CheckAFK - 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] [FS]CheckAFK (
/showthread.php?tid=138710)
[FS]CheckAFK -
GhOsT[X] - 02.04.2010
Info:
This simple checks if a players is not moving, It don't detects if the player is paused, only if the position is the same.
Yeah, It's a simple script, but maybe it's useful for someone.
Commands:
/checkafk (playerid), then the script will check for 10 seconds if the "playerid" is at the same position (Kick).
If different position = return message that the player isn't afk.
Download:
http://pastebin.com/aZ2VgW6N
Re: [FS]CheckAFK -
XRVX - 02.04.2010
and what if he is sniping somewhere and he lies there, kick?
very annoying imo
Re: [FS]CheckAFK -
GhOsT[X] - 02.04.2010
the sniping guy receives a message, then he just need to move ^^.
Yeah need some fixes, but that just a example.
If someone will being using it will need to re-adapt to the mode (Like a waiting time before reusing the cmd).
Obvious, there are better methods like onplayerupdate (checking if the player is paused)...
But i just posted because someone may need that sometime =)
Re: [FS]CheckAFK -
XRVX - 02.04.2010
maybe make the time longer then 10 seconds, 10 is short
and then maybe let a message send to the admin and let him decide to kick or not
Re: [FS]CheckAFK -
GhOsT[X] - 02.04.2010
yeah, can be, when i got some free time, i promise i update
hmm
if you wan't to check my other works:
http://forum.sa-mp.com/index.php?topic=163586.0 - ExploBullets
http://forum.sa-mp.com/index.php?topic=163603.0 - Goggles Desyncer
ty cya