SA-MP Forums Archive
how to check player pause - 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: how to check player pause (/showthread.php?tid=660476)



how to check player pause - PoniStar - 04.11.2018

hi guys i am working on a tdm game mode , and there are capture zones on it , i want to if a player pause [esc / go on windows or even lagged] server kick him [if he was in capture zone and tryed to capture that] i just want to know how should i detect the pause player i used inc's but not worked !


Re: how to check player pause - RogueDrifter - 04.11.2018

https://gist.github.com/RogueDrifter...1b9d5739b8409e


Re: how to check player pause - v1k1nG - 04.11.2018

Looks familiar


Re: how to check player pause - PoniStar - 05.11.2018

Thnx , but what's the difference between IsPlayerPaused(playerid); and IsPlayerAFK(playerid); ??


Re: how to check player pause - Ermanhaut - 05.11.2018




Re: how to check player pause - PoniStar - 05.11.2018

:/ ??


Re: how to check player pause - v1k1nG - 05.11.2018

Quote:
Originally Posted by PoniStar
View Post
:/ ??
AFK = Away From Keyboard
Imagine a player who goes in bathroom without pausing the game by hitting ESC, that is what OnPlayerAFK is for. OnPlayerPause use is to detect if a player pauses the game pressing ESC instead.


Re: how to check player pause - PoniStar - 05.11.2018

now i get it ! thnx worked <3 +reped