Raised This Month: $ Target: $400
 0% 

No exit menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 12-02-2011 , 19:39   No exit menu
Reply With Quote #1

Hi.

I need to delete the exit from here
Please tell me how to delete the exit from here.

Code:
#include <amxmodx>

public plugin_init()
{

    register_clcmd( "my_awesome_menu","AwesomeMenu");
}

public AwesomeMenu(id)
{

    new menu = menu_create("\gLook at this awesome Menu :", "menu_handler");

    menu_additem(menu, "\wI'm Selection #1", "1", 0);
    menu_additem(menu, "\wI'm Selection #2", "2", 0);
    menu_additem(menu, "\wI'm Secret Selection #3", "3", ADMIN_ADMIN);

    menu_setprop(menu, MPROP_EXITNAME, "Exit")
    menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
    menu_setprop(menu, MPROP_NUMBER_COLOR, "\r")

    menu_display(id, menu, 0);
}

public menu_handler(id, menu, item)
{
    if( item == MENU_EXIT )
    {
        menu_destroy(menu);

        return PLUGIN_HANDLED;
    }

    new data[6], szName[64];
    new access, callback;

    menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);

    new key = str_to_num(data);

    switch(key)
    {
        case 1:
        {
            client_print(id, print_chat, "Hooray! You selected the Awesome 1st Selection");
            menu_destroy(menu);
            return PLUGIN_HANDLED;
        }
        case 2:
        {
            client_print(id, print_chat, "OH NO! You selected the Awesome 2nd Selection! BEWARE!");
        }
        case 3:
        {
            client_print(id, print_chat, "You have selected the Awesome Admin Selection! Hail Teh Bail!");
        }
    }
    menu_destroy(menu);
}


This menu is to see here
http://forums.alliedmods.net/showthread.php?t=46364

thanks
Attached Thumbnails
Click image for larger version

Name:	de_dust20000.jpg
Views:	604
Size:	50.6 KB
ID:	96164  
RuRuRu612754 is offline
 


Thread Tools
Display Modes

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:29.


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