Raised This Month: $51 Target: $400
 12% 

menu destroy


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tarkan00
Senior Member
Join Date: Jan 2017
Old 08-30-2017 , 07:48   menu destroy
Reply With Quote #1

hello guys,
I need a plugin :
if user die and if any menu was open it menu must menu_destroy(will closed)
example idea:
PHP Code:
public plugin_init()
{
register_event(  "DeathMsg",  "EventDeathMsg",  "a"  );
}
public 
EventDeathMsg()
{    
    new 
killer read_data(1);
    new 
victim read_data(2);
menu_close_code(victim)

tarkan00 is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 08-30-2017 , 08:15   Re: menu destroy
Reply With Quote #2

Just show them an empty menu.
PHP Code:
show_menu(index0"^n"1); 
klippy is offline
tarkan00
Senior Member
Join Date: Jan 2017
Old 08-30-2017 , 08:36   Re: menu destroy
Reply With Quote #3

Quote:
Originally Posted by KliPPy View Post
Just show them an empty menu.
PHP Code:
show_menu(index0"^n"1); 
thanks, me too thought this idea.maybe can more good idea maybe a menü destroy stock ..
tarkan00 is offline
kristi
Senior Member
Join Date: Nov 2016
Old 08-30-2017 , 10:36   Re: menu destroy
Reply With Quote #4

On 1.8.3 you can use
PHP Code:
reset_menu(victim

Last edited by kristi; 08-30-2017 at 10:36.
kristi is offline
Send a message via Skype™ to kristi
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 01:32.


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