Posts: 362
Threads: 46
Joined: Jul 2013
Reputation:
0
Hello everyone.So SAMP clearly detects if someone is paused because when he does a small icon will appear above his head.Is there any way to use that to detect if a player is AFK?Cause abviously it's easier,more accurate and we don't have to use useless timers.And if not why don't SAMP team add a callback or a function to detect the paused players.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Actually, it is the client that detects this, not the server. The client detects that you're not receiving updates from a player and will a render an hourglass above that user's head. And as we all know, clients can't be trusted when it comes to triggering events.
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
The hour glass is client sided yes so you need to use OPU
Posts: 362
Threads: 46
Joined: Jul 2013
Reputation:
0
Oh,so when a player pauses the game it will stop sending updates?and if so would it be paussible to detect that under OnPlayerUpdate?