Raised This Month: $ Target: $400
 0% 

Destroy Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zombieplague
Veteran Member
Join Date: Apr 2009
Old 06-26-2010 , 05:00   Destroy Menu
Reply With Quote #1

Hi guys, How do I destroy a menu ?
zombieplague is offline
BloodMan
Senior Member
Join Date: Apr 2008
Location: Lithuania
Old 06-26-2010 , 05:01   Re: Destroy Menu
Reply With Quote #2

menu_destroy(menu);
return PLUGIN_HANDLED;
}
__________________
BloodMan is offline
Send a message via Skype™ to BloodMan
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 06-26-2010 , 06:06   Re: Destroy Menu
Reply With Quote #3

Note: Don't destroy static menu's ( the one generated in plugin_cfg for example ) or the menu will only work once.
__________________
I am out of order!
grimvh2 is offline
zombieplague
Veteran Member
Join Date: Apr 2009
Old 06-27-2010 , 05:53   Re: Destroy Menu
Reply With Quote #4

Quote:
Originally Posted by grimvh2 View Post
Note: Don't destroy static menu's ( the one generated in plugin_cfg for example ) or the menu will only work once.
I not sure.

PHP Code:
public roundStart( )
{
    for ( new 
1<= g_iMaxPlayersi++ )
    {
         
set_task1.0"Menu")
         
set_task5.0"Destroy_Menu")
    }

I want the Menu to be destroy in 5 second time. but i don't know the code
zombieplague is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 06-27-2010 , 06:14   Re: Destroy Menu
Reply With Quote #5

Quote:
Originally Posted by zombieplague View Post
I not sure.

PHP Code:
public roundStart( )
{
    for ( new 
1<= g_iMaxPlayersi++ )
    {
         
set_task1.0"Menu")
         
set_task5.0"Destroy_Menu")
    }

I want the Menu to be destroy in 5 second time. but i don't know the code
BloodMan gave you the code...

And you have to know that you are destroying the menu in 4 seconds after the menu appear, not 5 seconds (5 - 1).
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 06-27-2010 , 07:22   Re: Destroy Menu
Reply With Quote #6

I doubt you need to destroy the menu in your case.
__________________
hleV is offline
Reply


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 14:43.


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