PDA

View Full Version : Check if player has a specific menu open



Peterlankton
16th June 2013, 20:30
Hi there,

As the title says I am wondering if there was any way to check if a player has a menu open.
So for example one player is in the weapon_american menu. Can you test in a script if he is in it?

Hope you get what I mean :D

randall
16th June 2013, 20:51
You can only check indirect. For example the player sends a response if the menu is opened, and a response if closed.

Peterlankton
16th June 2013, 21:03
I know onClose{} is available for the .menu file. So you say there is a onOpen{} as well?
If that is true then that is the solution for my problem.

Cheers buddy!

Mitch
16th June 2013, 21:14
I know onClose{} is available for the .menu file. So you say there is a onOpen{} as well?
If that is true then that is the solution for my problem.

Cheers buddy!

Yes, menus have 3 on functions: onOpen, onClose, onEsc.