Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] How to check alt-tabbing using onplayerupdate?

 
  • 0 Vote(s) - 0 Average
Pawn How to check alt-tabbing using onplayerupdate?
c4p
Offline

Burgershot Member
Posts: 7
Threads: 3
Joined: Dec 2020
Reputation: 0
#1
2020-12-11, 12:40 PM
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.
Freaksken
Offline

open.mp Developer

Posts: 80
Threads: 4
Joined: Feb 2019
Reputation: 6
Location: Belgium
#2
2020-12-11, 06:19 PM
https://github.com/emmet-jones/New-SA-MP-callbacks
Always keep in mind that a lot of people are active on this forum in their spare time.
They are sacrificing time they could easily spend on things they would rather do, to help you instead.
c4p
Offline

Burgershot Member
Posts: 7
Threads: 3
Joined: Dec 2020
Reputation: 0
#3
2020-12-11, 07:02 PM
(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.
Freaksken
Offline

open.mp Developer

Posts: 80
Threads: 4
Joined: Feb 2019
Reputation: 6
Location: Belgium
#4
2020-12-11, 11:33 PM
That method has been proven to work for ALT-TAB as well. It can take a few seconds before it is triggered.
Always keep in mind that a lot of people are active on this forum in their spare time.
They are sacrificing time they could easily spend on things they would rather do, to help you instead.
DaZzY
Offline

Burgershot Member
Posts: 74
Threads: 12
Joined: Oct 2020
Reputation: 2
#5
2020-12-12, 12:15 PM
Try this 
https://github.com/Agneese-Saini/SA-MP/blob/master/pawno/include/pause.inc
Pinch
Offline

Burgershot Member
Posts: 391
Threads: 19
Joined: Apr 2019
Reputation: 22
Location: Belgrade, Serbia
#6
2020-12-12, 02:09 PM
YSF??
Using Pawn.CMD?
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode