Raised This Month: $ Target: $400
 0% 

Destroy menu on player death


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Unkolix
Veteran Member
Join Date: Sep 2012
Old 02-16-2013 , 05:25   Destroy menu on player death
Reply With Quote #1

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);


Last edited by Unkolix; 02-16-2013 at 06:09.
Unkolix is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-16-2013 , 05:38   Re: Destroy menu on player death
Reply With Quote #2

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.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Unkolix
Veteran Member
Join Date: Sep 2012
Old 02-16-2013 , 05:39   Re: Destroy menu on player death
Reply With Quote #3

Quote:
Originally Posted by YamiKaitou View Post
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?
Unkolix is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-16-2013 , 05:40   Re: Destroy menu on player death
Reply With Quote #4

By using the second code block, show a menu without ^n
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Unkolix
Veteran Member
Join Date: Sep 2012
Old 02-16-2013 , 05:42   Re: Destroy menu on player death
Reply With Quote #5

Like this?
PHP Code:
show_menu(id0""1); 
And is it possible to check if menu exists?

Last edited by Unkolix; 02-16-2013 at 05:51.
Unkolix 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 21:49.


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