29.11.2014, 14:31
How do I know if the player is in PAUSE MENU?
public OnPlayerOpenPauseMenu(playerid)
[18:38:57] [join] Guy has joined the server (0:127.0.0.1) [18:38:57] [SA-MP+] Player connecting, has the SA-MP+ plugin: 0 [18:41:44] [part] Guy has left the server (0:1) [18:42:45] [SA-MP+] Unhandled connection accepted: 127.0.0.1:55896 [18:42:45] [SA-MP+] Unknown packet received: 19, local: 0 [18:42:49] Incoming connection: 127.0.0.1:55909 [18:42:49] [join] Guy has joined the server (0:127.0.0.1) [18:42:49] [SA-MP+] Player connecting, has the SA-MP+ plugin: 1 [18:43:00] Guy On Menu |
You cannot currently detect if player has opened pause menu without any client modification. But it's possible to know if player is inactive from game because OnPlayerUpdate doesn't get called when player is inactive. If you search 'OnPlayerPause' or something similar, you may find some codes.
|