open.mp forum
[Pawn] How to check alt-tabbing using onplayerupdate? - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10)
--- Thread: [Pawn] How to check alt-tabbing using onplayerupdate? (/showthread.php?tid=1416)



How to check alt-tabbing using onplayerupdate? - c4p - 2020-12-11

I tried different methods to check if the player is in menu or tabbed, but they most likely return false activity when the player tabs out to the desktop. There were some onplayerupdate tabbing checkers on the original forums, but they are no longer available, so i am stuck. If you have a code snippet please help this man out.


RE: How to check alt-tabbing using onplayerupdate? - Freaksken - 2020-12-11

https://github.com/emmet-jones/New-SA-MP-callbacks


RE: How to check alt-tabbing using onplayerupdate? - c4p - 2020-12-11

(2020-12-11, 06:19 PM)Freaksken Wrote: https://github.com/emmet-jones/New-SA-MP-callbacks



not good, it only works in menu, returns in-game when alt-tabbed.


RE: How to check alt-tabbing using onplayerupdate? - Freaksken - 2020-12-11

That method has been proven to work for ALT-TAB as well. It can take a few seconds before it is triggered.


RE: How to check alt-tabbing using onplayerupdate? - DaZzY - 2020-12-12

Try this?

https://github.com/Agneese-Saini/SA-MP/blob/master/pawno/include/pause.inc


RE: How to check alt-tabbing using onplayerupdate? - Pinch - 2020-12-12

YSF??