Raised This Month: $ Target: $400
 0% 

hide menus


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 07-23-2010 , 17:35   Re: hide menus
Reply With Quote #1

I used a method that is not really eficient... but in the Others subforum someone posted this:

Code:
#define TEAM_SELECT_VGUI_MENU_ID 2 public plugin_init() {      register_message(get_user_msgid("ShowMenu"),"message_show_menu")      register_message(get_user_msgid("VGUIMenu"), "message_vgui_menu") public message_show_menu(msgid, dest, id) {     static team_select[] = "#Team_Select"     static menu_text_code[sizeof team_select]     get_msg_arg_string(4, menu_text_code, sizeof menu_text_code - 1)     if (equal(menu_text_code, team_select))         return PLUGIN_HANDLED         return PLUGIN_CONTINUE } public message_vgui_menu(msgid, dest, id)  {     if (!(get_msg_arg_int(1) != TEAM_SELECT_VGUI_MENU_ID))         return PLUGIN_HANDLED         return PLUGIN_CONTINUE }

I think is the best method.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
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 00:08.


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