Raised This Month: $ Target: $400
 0% 

Get menu close


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
VEN
Veteran Member
Join Date: Jan 2005
Old 07-02-2006 , 11:30   Re: Get menu close
Reply With Quote #1

Do you want to catch the menu close moment? Is this for any menu?
If just check for menu needed this can be used
PHP Code:
/* Gets what menu the player is watching and what keys for menu he have.
* When there is no menu the index is 0. If the id is negative then the menu
* is VGUI in other case the id is from register_menuid() function. */
native get_user_menu(index,&id,&keys); 
You can loop this to catch menu close event, not a good way but then you do not have to register every menu.

Last edited by VEN; 07-02-2006 at 11:38.
VEN is offline
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 07-02-2006 , 15:46   Re: Get menu close
Reply With Quote #2

Thanks VEN.

Im going to make a menu que system, that will wait untill the curent menu is closed before it displays the new one....
WaZZeR++ is offline
Send a message via MSN to WaZZeR++
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 08:02.


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