Raised This Month: $ Target: $400
 0% 

hide menus


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nyuszy
Senior Member
Join Date: Apr 2009
Old 07-22-2010 , 16:28   hide menus
Reply With Quote #1

how can i hide team select and class select menu on connect?
Nyuszy is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 07-22-2010 , 17:05   Re: hide menus
Reply With Quote #2

Search.

I believe ConnorMcLeod made something exactly for this purpose.
__________________
Hi.
Kreation is offline
Nyuszy
Senior Member
Join Date: Apr 2009
Old 07-22-2010 , 17:57   Re: hide menus
Reply With Quote #3

sry, but i don't find anything that can help me
Nyuszy is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-22-2010 , 18:32   Re: hide menus
Reply With Quote #4

auto team join?
__________________
fysiks is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 07-22-2010 , 23:15   Re: hide menus
Reply With Quote #5

Yes fysiks, but if you don't want to auto join people when connect, but you want to disable the default menu? For example to put another menu there, created by you.

I need this too... i know a method but i think can be better... cuz if i am not wrong, depends of the type of menu that the player is using (old or new style).
__________________
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^
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-22-2010 , 23:20   Re: hide menus
Reply With Quote #6

Auto join to spectator. Display your menu. Just a thought.
__________________
fysiks is offline
Nyuszy
Senior Member
Join Date: Apr 2009
Old 07-23-2010 , 16:06   Re: hide menus
Reply With Quote #7

good idea.
can anybody write a simple code for forcing connected players to spec?
i don't understand the Auto Join on Connect's and Team Join Management's code...
Nyuszy is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 07-23-2010 , 17:35   Re: hide menus
Reply With Quote #8

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^
Nyuszy
Senior Member
Join Date: Apr 2009
Old 07-24-2010 , 11:59   Re: hide menus
Reply With Quote #9

thx for help
Nyuszy is offline
Nyuszy
Senior Member
Join Date: Apr 2009
Old 07-24-2010 , 17:20   Re: hide menus
Reply With Quote #10

this code block only team select menu. but how can i block class select menu too?
i try this:
PHP Code:
engclient_cmd(id"jointeam""1")
engclient_cmd(id"joinclass""1"
but it change only the team...
Nyuszy is offline
Reply


Thread Tools
Display Modes

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