Raised This Month: $ Target: $400
 0% 

Checking if a menu is open


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-18-2017 , 13:28   Re: Checking if a menu is open
Reply With Quote #4

Quote:
Originally Posted by edon1337 View Post
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.

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

That's not what he is asking for. What if the menu comes from other plugin?
Also resetting on spawn is wrong, you should reset as soon as the menu is closed.
__________________

Last edited by HamletEagle; 01-18-2017 at 13:28.
HamletEagle 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