Raised This Month: $ Target: $400
 0% 

Menu special id?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Unkolix
Veteran Member
Join Date: Sep 2012
Old 02-24-2013 , 15:52   Menu special id?
Reply With Quote #1

Is it possible to add a special menu id or something, so later I could destroy and hide it with this command?
PHP Code:
show_menu(id0"^n"1); 
Or maybe it's possible to check if menu is displayed?

I have this menu:
PHP Code:
new newmenu[64], choise_1[64], choise_2[64], choise_3[64]
format(newmenu64"%L"id"NEW_MENU");
g_iMenu menu_create(newmenu"Pressedrod");
format(choise_164"%L"id"MENU_CHOISE_1");
menu_additem(g_iMenuchoise_1"1"0);
format(choise_264"%L"id"MENU_CHOISE_2");
menu_additem(g_iMenuchoise_2"2"0); 
And I want to destroy and hide it on player death
PHP Code:
RegisterHam(Ham_Killed"player""PlayerDies"1)
/***/
public PlayerDies(id)
{
    if(
get_user_flags(id) & ADMIN_LEVEL_H)
    {
        
show_menu(id0"^n"1);
    }

The problem is that show_menu(id, 0, "^n", 1); destoys all menus...
Unkolix 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 21:37.


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