How to forbid a player to press ESC?
#3

Quote:
Originally Posted by TwinkiDaBoss
Посмотреть сообщение
Preety much you cant detect the escape button.
https://sampwiki.blast.hk/wiki/Keys

But what you can do is, when the player is afk, OnPlayerUpdate wont be called. You can simply fool around with that and see what you can come up with.

Simply:
1. Check if the OnPlayerUpdate is being called
2. If its not called for more than 5-10 seconds, then they are most likely afk.
if player's not moving OnPlayerUpdate won't be called if I am not wrong if you're not afk but not moving at the same time [ just chatting or something like that ] it going to show you as afk....
Reply


Messages In This Thread
How to forbid a player to press ESC? - by SetPlayerNameTag - 10.06.2016, 10:31
Re: How to forbid a player to press ESC? - by TwinkiDaBoss - 10.06.2016, 10:38
Re: How to forbid a player to press ESC? - by jlalt - 10.06.2016, 10:51
Re: How to forbid a player to press ESC? - by SetPlayerNameTag - 10.06.2016, 10:54

Forum Jump:


Users browsing this thread: 1 Guest(s)