Raised This Month: $ Target: $400
 0% 

Solved Opening a menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 08-08-2019 , 09:00   Re: Opening a menu
Reply With Quote #2

Post in Suggestion/Requests section if you don't know how to script.
PHP Code:
new bool:g_bMenuOpen;

public 
Menuid )
{
    if( 
g_bMenuOpen )
    {
        
client_printidprint_chat"Menu is already being used by another admin" );
        return 
PLUGIN_HANDLED;
    }
    
    
g_bMenuOpen true;
    
    new 
iMenu menu_create"Menu Title""MenuHandler" );
    
    
menu_additemiMenu"Item1" );
    
menu_additemiMenu"Item2" );
    
menu_additemiMenu"Item3" );
    
    
menu_displayidiMenu);
}

public 
MenuHandleridiMenuiItem )
{
    
g_bMenuOpen false;

    
// code

__________________
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 17:30.


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