Protect from afk bots - 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: Protect from afk bots (
/showthread.php?tid=501132)
Protect from afk bots -
audriuxxx - 16.03.2014
Hi,
I want to ask. How to protect server from afk bots? i mean i have afk system in my server, and sometimes players have a cheats, cleo's i don't know what is that, and they are moving and i can't to detect is he afk, and i very important to know is player moving or no, because i set him to afk or no, when player use cheats he automaticly moves i think you understand.
Re: Protect from afk bots -
CuervO - 16.03.2014
Players don't call OnPlayerUpdate if they are Paused, minimized, etc. With that being said you can create a variable and check for it at OnPlayerUpdate to determine if the player is AFK or not.
For more information ****** -> OnPlayerPause
Re: Protect from afk bots -
audriuxxx - 16.03.2014
I don't ask, to check is player AFK. I mean player's sometimes with programs avoide this
Re: Protect from afk bots -
]Rafaellos[ - 16.03.2014
A cleo mod will not work if a player is Paused.