How to forbid a player to press ESC? - 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 forbid a player to press ESC? (
/showthread.php?tid=609241)
How to forbid a player to press ESC? -
SetPlayerNameTag - 10.06.2016
I made an m0d detection, everything works fine but player can press esc to avoid the detecting, i tried OnPlayerPaused, it does not working fine for me there's a misinformation. so I want to use SelectTextDraw, how about this?
Re: How to forbid a player to press ESC? -
TwinkiDaBoss - 10.06.2016
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.
Re: How to forbid a player to press ESC? -
jlalt - 10.06.2016
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....
Re: How to forbid a player to press ESC? -
SetPlayerNameTag - 10.06.2016
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.
|
I know this function, update > 3 seconds then player being afk but its not good for my cheat checker