Raised This Month: $ Target: $400
 0% 

menu destroy


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MyDooMJr
Member
Join Date: Jun 2009
Location: Portugal
Old 01-05-2011 , 09:36   Re: menu destroy
Reply With Quote #1

Humm,

First : If you don't want the menu to be displayed for TEAM_CT, you may add that code on menu function :

Example :

Code:
public tonda(id)
{
    
    new menu = menu_create("\rMenu","menu_tonda")
    
    if( is_user_alive( id ) && cs_get_user_team ( id ) == CS_TEAM_CT )
    {
        menu_destroy(menu)
    }
  // menu_additem(menu,"Tonda Shop's","1",0)
}
U should use AMXX New Menu Style , if you're not using it.

http://forums.alliedmods.net/showthread.php?t=46364 <-- New amx menu style.

Regards

I hope i helped you

Last edited by MyDooMJr; 01-05-2011 at 09:39.
MyDooMJr is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-05-2011 , 20:06   Re: menu destroy
Reply With Quote #2

menu_destroy will NOT remove it from your screen. It disables it's function and releases the memory resource.
__________________
fysiks 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 01:26.


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