AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Destroy menu on player death (https://forums.alliedmods.net/showthread.php?t=208649)

Unkolix 02-16-2013 05:25

Destroy menu on player death
 
I have an issue...
This code doesn't hide the menu, but does destroy it. I need to make it hide the view. And it destroys the menu every time when anyone dies, I need it to make so if only that user dies, menu destroys.
PHP Code:

register_event"DeathMsg""PlayerDies""a""1!0" ); 

PHP Code:

public PlayerDies(id)
{
    
menu_destroy(g_iMenu);



YamiKaitou 02-16-2013 05:38

Re: Destroy menu on player death
 
What makes you believe menu_destroy is not destroying the menu? Just so you know, it is not designed to remove it from view, it will just invalidate the menu.

Unkolix 02-16-2013 05:39

Re: Destroy menu on player death
 
Quote:

Originally Posted by YamiKaitou (Post 1895364)
What makes you believe menu_destroy is not destroying the menu? Just so you know, it is not designed to remove it from view, it will just invalidate the menu.

Well, yeah.... lol... It works, but it doesn't remove it from view.. How can I remove it? :D

YamiKaitou 02-16-2013 05:40

Re: Destroy menu on player death
 
By using the second code block, show a menu without ^n

Unkolix 02-16-2013 05:42

Re: Destroy menu on player death
 
Like this?
PHP Code:

show_menu(id0""1); 

And is it possible to check if menu exists?


All times are GMT -4. The time now is 21:49.

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