SA-MP Forums Archive
Is player in menu/win? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Is player in menu/win? (/showthread.php?tid=389354)



Is player in menu/win? - SEnergy - 01.11.2012

is there any function that can return if player is in menu (ESC) or in win (alt+tab)?


Re: Is player in menu/win? - iJumbo - 01.11.2012

you can check in onplayerupdate if player is updating or not .. with GetTickCount();


Re: Is player in menu/win? - SEnergy - 01.11.2012

GetTickCount() returns how long is server running or do I understand it wrong ? O_o


Re: Is player in menu/win? - iJumbo - 01.11.2012

Yea but you can use it for check the difference from 2 times..

like

you get the start value GetTickCount...


then you finish the function and get it again .. the frist - the second you get the time


Re: Is player in menu/win? - SEnergy - 01.11.2012

yes but it will work both times since player is on server, so basically he is updating chat etc, well, I'l ltry this later