Detect paused player? - 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: Detect paused player? (
/showthread.php?tid=334289)
Detect paused player? -
Admigo - 14.04.2012
Heey all,
How can i detect if someone is in options menu(esc) or is alt + tabbed?
And how can i add paused above his head?
Please help me with this.
Thanks Admigo
Re: Detect paused player? -
park4bmx - 14.04.2012
well simply set a timer for lets say 10/15 seconds and save the player's position into a global variable
then the next 10/15 seconds if the player is in the same pos he probabbly [Alt/tabed]
need example ?
Re: Detect paused player? -
Twisted_Insane - 14.04.2012
I've just created the same thread...
Anyways; the answer'd be in there:
https://sampforum.blast.hk/showthread.php?tid=152645