Raised This Month: $ Target: $400
 0% 

How to judge that the menu is closed?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 07-11-2014 , 16:55   Re: How to judge that the menu is closed?
Reply With Quote #1

You could set a function to execute when player selects the exit key.

Code:
if( item == MENU_EXIT ) {  menu_destroy( menu );  // put function to execute here.  return plugin_handled; }

Quick example. Mobile post might not be indented sorry.
__________________

Last edited by Blizzard_87; 07-11-2014 at 16:56.
Blizzard_87 is offline
jack111331
Junior Member
Join Date: Aug 2012
Old 07-11-2014 , 21:18   Re: How to judge that the menu is closed?
Reply With Quote #2

Quote:
Originally Posted by Blizzard_87 View Post
You could set a function to execute when player selects the exit key.

Code:
if( item == MENU_EXIT ) {  menu_destroy( menu );  // put function to execute here.  return plugin_handled; }

Quick example. Mobile post might not be indented sorry.
It‘s a way to detect it
But there are lots of way to close menu like :
create a new menu to cancel the menu you are using
jack111331 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode