Raised This Month: $ Target: $400
 0% 

How to judge that the menu is closed?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 #5

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
 



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