AlliedModders

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

zombieplague 06-26-2010 05:00

Destroy Menu
 
Hi guys, How do I destroy a menu ?

BloodMan 06-26-2010 05:01

Re: Destroy Menu
 
menu_destroy(menu);
return PLUGIN_HANDLED;
}

grimvh2 06-26-2010 06:06

Re: Destroy Menu
 
Note: Don't destroy static menu's ( the one generated in plugin_cfg for example ) or the menu will only work once.

zombieplague 06-27-2010 05:53

Re: Destroy Menu
 
Quote:

Originally Posted by grimvh2 (Post 1220246)
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

Alucard^ 06-27-2010 06:14

Re: Destroy Menu
 
Quote:

Originally Posted by zombieplague (Post 1221245)
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).

hleV 06-27-2010 07:22

Re: Destroy Menu
 
I doubt you need to destroy the menu in your case.


All times are GMT -4. The time now is 14:43.

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