Raised This Month: $ Target: $400
 0% 

Menu will disappear after the round .


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Splot
Junior Member
Join Date: Nov 2011
Old 11-14-2011 , 09:10   Menu will disappear after the round .
Reply With Quote #1

hello everyone ,

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHamHam_Spawn"player""Player_Spawn");
}

public 
Player_Spawn(id)
{
    
menu(id)    
}

public 
menu(id)
{        
        new 
menu1 menu_create("menu""sub_menu")
        
        
menu_additem(menu1"options 1""1"0);
        
menu_additem(menu1"options 2""2"0);
        
menu_additem(menu1"options 3""3"0);                        
        
        
menu_setprop(menu1MPROP_EXITMEXIT_ALL);
        
menu_display(idmenu10);
            
}

public 
sub_menu(idmenu1item)
{    
    if( 
item == MENU_EXIT )
    {    
        
menu_destroy(menu1);
        return 
PLUGIN_HANDLED;
    }    
    new 
data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(menu1itemaccessdata6iName63callback)
    
    new 
key str_to_num(data);
    
    switch( 
key )
    {
        case 
1:
        {
            
client_print(idprint_chat"options 1")
        }
        case 
2:
        {
            
client_print(idprint_chat"options 2")        
        }
        case 
3:
        {
            
client_print(idprint_chat"options 3")            
        }        
        
    }
    
menu_destroy(menu1);
    return 
PLUGIN_HANDLED;

I want to do when the round ends The menu will disappear
thx.
Splot 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 08:33.


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