Raised This Month: $ Target: $400
 0% 

Checking if a menu is open


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-18-2017 , 13:26   Re: Checking if a menu is open
Reply With Quote #3

Make a global bool "g_MenuActive[33];" then after menu_display put "g_MenuActive[id] = true", don't forget to put "g_MenuActive[id] = false" on Ham_Spawn and after menu is closed (menu_destroy). This can be used only when menu comes from that plugin.

So if you want to check you'd do
PHP Code:
if(g_MenuActive[id]) {
// code

__________________

Last edited by edon1337; 01-18-2017 at 14:08.
edon1337 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 20:58.


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