SA-MP Forums Archive
Include for pausemenu - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Include for pausemenu (/showthread.php?tid=137381)



Include for pausemenu - cozza123456 - 28.03.2010

Could someone make me an include that gives this function:

IsPlayerPaused(playerid, 1)

So i can send a message to all if they are.


Re: Include for pausemenu - aircombat - 28.03.2010

don't think its possible exept if there is a Esc button in keystate like : if(KEY_ESC) return Paused = 1


Re: Include for pausemenu - cozza123456 - 28.03.2010

It is possible - If the player returns 0 on onplayerupdate i think.


Re: Include for pausemenu - Mikep. - 29.03.2010

OnPlayerUpdate isn't called when a player is paused, so you could set a 1 second timer under OnPlayerUpdate, and kill it next time OPU is called, then if the timer is called, they haven't updated for 1 second, meaning they are paused.


Re: Include for pausemenu - DRIFT_HUNTER - 29.03.2010

it is posible i hawe seen it on some server but idk how...


Re: Include for pausemenu - Calgon - 29.03.2010

http://forum.sa-mp.com/index.php?topic=78166.0


Re: Include for pausemenu - cozza123456 - 29.03.2010

YUP doesn't work for me.


Re: Include for pausemenu - Mikep. - 29.03.2010

Quote:
Originally Posted by Mikep.
OnPlayerUpdate isn't called when a player is paused, so you could set a 1 second timer under OnPlayerUpdate, and kill it next time OPU is called, then if the timer is called, they haven't updated for 1 second, meaning they are paused.
Quote:
Originally Posted by Mikep.
OnPlayerUpdate isn't called when a player is paused, so you could set a 1 second timer under OnPlayerUpdate, and kill it next time OPU is called, then if the timer is called, they haven't updated for 1 second, meaning they are paused.
Quote:
Originally Posted by Mikep.
OnPlayerUpdate isn't called when a player is paused, so you could set a 1 second timer under OnPlayerUpdate, and kill it next time OPU is called, then if the timer is called, they haven't updated for 1 second, meaning they are paused.
Quote:
Originally Posted by Mikep.
OnPlayerUpdate isn't called when a player is paused, so you could set a 1 second timer under OnPlayerUpdate, and kill it next time OPU is called, then if the timer is called, they haven't updated for 1 second, meaning they are paused.