How to forbid a player to press ESC?
#1

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?
Reply
#2

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.
Reply
#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
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)