Posts: 574
Threads: 87
Joined: Aug 2009
Reputation:
0
Could someone make me an include that gives this function:
IsPlayerPaused(playerid, 1)
So i can send a message to all if they are.
Posts: 1,535
Threads: 90
Joined: Feb 2010
Reputation:
0
don't think its possible exept if there is a Esc button in keystate like : if(KEY_ESC) return Paused = 1
Posts: 574
Threads: 87
Joined: Aug 2009
Reputation:
0
It is possible - If the player returns 0 on onplayerupdate i think.
Posts: 465
Threads: 34
Joined: Sep 2009
Reputation:
0
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.
Posts: 2,203
Threads: 154
Joined: Oct 2009
Reputation:
0
it is posible i hawe seen it on some server but idk how...
Posts: 6,129
Threads: 36
Joined: Jan 2009