Include for pausemenu
#1

Could someone make me an include that gives this function:

IsPlayerPaused(playerid, 1)

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

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

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

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.
Reply
#5

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

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

YUP doesn't work for me.
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)