AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Menu malfunction problem. (https://forums.alliedmods.net/showthread.php?t=89853)

Metanabol 04-11-2009 08:07

Menu malfunction problem.
 
Hello i made menu for vip players (guns,armors and etc...). But sometimes player press B button(for buying weapons) and then v (vipmenu) then normal buymenu gets buggy, vipmenu buys normal guns and gun from normal menu at one time or not buy normal gun form vipmenu... So i want to disable b(normal menu) after player press v. :)

PHP Code:

public menubind(id)
{
    if(
get_user_flags(id) & ADMIN_LEVEL_H)
    {
        if(
g_vipbuy) { //timer 15sec :) for disabling menu
            
new menu[192]
            new 
keys MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5|MENU_KEY_0
            format
(menu191"VIP MENU^n^n1. M4A1 Pack.^n2. AK47 Pack^n3. Grenades.^n4. Armor.^n5. Deagle.^n^n^n0. Exit")
            
show_menu(idkeysmenu)
            return 
PLUGIN_HANDLED
        
}
        else {
            
client_print(idprint_center"[KPZ] VIPMENU is disabled after 15seconds.")
        }
    }    
    return 
PLUGIN_HANDLED



Spunky 04-11-2009 08:24

Re: Menu malfunction problem.
 
Why are you using the old menu system?

http://forums.alliedmods.net/showthread.php?t=46364

Arkshine 04-11-2009 08:39

Re: Menu malfunction problem.
 
"old" menu is perfectly fine. It's up to him to decide.

Metanabol 04-13-2009 06:37

Re: Menu malfunction problem.
 
I make tread not to asking me, why im using old style menu, but how to disable first menu(if it is using) after starting second menu.


All times are GMT -4. The time now is 02:22.

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