Raised This Month: $ Target: $400
 0% 

Menu Help = How to make menu close if its open when respawn or die.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cikjam
Senior Member
Join Date: Feb 2009
Location: Australia
Old 08-05-2009 , 02:10   Menu Help = How to make menu close if its open when respawn or die.
Reply With Quote #1

Hello,

Like title says,
If you have blockmaker menu open last round and you win round or die,
the next round the menu always shows again, I dont want this.
I want the menu to close.

There should be a simple solution, but i couldn't find one.
Any help will be great.

Thanx
__________________
R.I.P Aziz 'Zyzz' Sergeyevich Shavershian
cikjam is offline
Old 08-05-2009, 03:30
Arkshine
This message has been deleted by Arkshine. Reason: nvm
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 08-05-2009 , 05:24   Re: Menu Help = How to make menu close if its open when respawn or die.
Reply With Quote #2

Don't know what blockmaker you use, but I believe it shows it manually again and has some variable counting if it's open or not, cause normally menus should get closed if you die or get spawned. Somehow you can test something smiliar as:
PHP Code:
new menunewmenu;
if( 
player_menu_infoindexmenunewmenu ) )
{
     
menu_cancelindex );
     
client_cmdindex"slot1" );

SnoW is offline
Send a message via MSN to SnoW
cikjam
Senior Member
Join Date: Feb 2009
Location: Australia
Old 08-10-2009 , 03:11   Re: Menu Help = How to make menu close if its open when respawn or die.
Reply With Quote #3

I need one menu only to close, rest is fine.
Could you have a look at blockmaker and tell me where I could do that. I tried looking but couldn't find anything.

Thanx
__________________
R.I.P Aziz 'Zyzz' Sergeyevich Shavershian
cikjam is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 08-10-2009 , 05:40   Re: Menu Help = How to make menu close if its open when respawn or die.
Reply With Quote #4

PHP Code:
#include <hamsandwich>
 
//plugin_init
RegisterHamHam_Spawn"player""fwSpawn");
 
public 
fwSpawnid )
{
     if( 
is_user_aliveid ) )
     {
          new 
menunewmenu;
          if( 
player_menu_infoindexmenunewmenu ) )
          {
               
menu_cancelindex );
               
client_cmdindex"slot1" );
               return 
HAM_HANDLED;
          }
     } 
     return 
HAM_IGNORED;

SnoW is offline
Send a message via MSN to SnoW
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 18:21.


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