Raised This Month: $ Target: $400
 0% 

Menu malfunction problem.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Metanabol
Member
Join Date: Feb 2009
Old 04-11-2009 , 08:07   Menu malfunction problem.
Reply With Quote #1

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

Metanabol is offline
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 04-11-2009 , 08:24   Re: Menu malfunction problem.
Reply With Quote #2

Why are you using the old menu system?

http://forums.alliedmods.net/showthread.php?t=46364
Spunky is offline
Send a message via AIM to Spunky
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-11-2009 , 08:39   Re: Menu malfunction problem.
Reply With Quote #3

"old" menu is perfectly fine. It's up to him to decide.
Arkshine is offline
Metanabol
Member
Join Date: Feb 2009
Old 04-13-2009 , 06:37   Re: Menu malfunction problem.
Reply With Quote #4

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.
Metanabol is offline
Reply



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 02:22.


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