Posts: 168
Threads: 54
Joined: Jan 2015
Reputation:
0
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?
Posts: 1,266
Threads: 6
Joined: Oct 2014
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....