SA-MP Forums Archive
Need help about AFK system - 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: Need help about AFK system (/showthread.php?tid=519126)



Need help about AFK system - MBilal - 12.06.2014

Hello guyz i need help can some budy tell me how to make AFK system not with Cmd its detect Player is AFK ,when player is not moving or he Press Key ESC its Create Texdraw on his Head AFK


Re: Need help about AFK system - Jay_Dixon - 12.06.2014

Quote:
Originally Posted by MBilal
Посмотреть сообщение
Hello guyz i need help can some budy tell me how to make AFK system not with Cmd its detect Player is AFK ,when player is not moving or he Press Key ESC its Create Texdraw on his Head AFK
When you press the ESC key by default a timer appears next to the persons name. Also there's a few plugins on the forums that allow you to make an AFK system.


Re: Need help about AFK system - SilentSoul - 12.06.2014

Hello, use this include by Emmet_ there's alot of functions instead of scripting new script. stock IsPlayerPaused(playerid); to check if the player paused OnPlayerResume(playerid, time), and all what you want i guess.