Raised This Month: $ Target: $400
 0% 

list of predefined VGUIMenu id's


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sickM0nkey
Junior Member
Join Date: Aug 2012
Location: Latvia
Old 08-24-2012 , 12:23   list of predefined VGUIMenu id's
Reply With Quote #1

Hello && sorry about my English

I need to detect when player reaches SELECT TEAM MENU

For now, I have
Code:
public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_message(get_user_msgid("VGUIMenu"), "detectTeamSelect"); } publuic detectTeamSelect() {     // menu id     // if(get_msg_arg_int(1) == ?) }

Where can I find list of predefined VGUIMenu id's so I can use them with get_msg_arg_int()?

How to do same with old style menus? I know, that I can use ShowMenu event instead of VGUIMenu, but then where can I find all returning menu messages (If they are called like that), like #Team_Select, #IG_Team_Select

ty!
__________________
n00b

Last edited by sickM0nkey; 08-24-2012 at 12:32.
sickM0nkey is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 08-24-2012 , 12:46   Re: list of predefined VGUIMenu id's
Reply With Quote #2

debug and you'll see the index!

Edit.

Spoiler
__________________


Last edited by NiHiLaNTh; 08-24-2012 at 12:47.
NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
sickM0nkey
Junior Member
Join Date: Aug 2012
Location: Latvia
Old 08-24-2012 , 13:27   Re: list of predefined VGUIMenu id's
Reply With Quote #3

Weird, when I join game with Old Style Menu, and check get_msg_arg_string(4, MenuCode) then MenuCode is empty string (checking with if(MenuCode[0]) before MenuCode printing), but when I try change team from in game it sets correct value - #IG_Team_Select

why it is emty string not #Team_Select
__________________
n00b

Last edited by sickM0nkey; 08-24-2012 at 13:28.
sickM0nkey is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 08-24-2012 , 14:49   Re: list of predefined VGUIMenu id's
Reply With Quote #4

lol I didn't read the whole post, anyway, for the old style menus search inside titles.txt. There are all needed menu title names.

Quote:
get_msg_arg_string(4, MenuCode)


It's a string, so it should be like that

Code:
new MenuCode[ 32 ];
get_msg_arg_string( 4, MenuCode, charsmax( MenuCode ) );
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
sickM0nkey
Junior Member
Join Date: Aug 2012
Location: Latvia
Old 08-24-2012 , 15:12   Re: list of predefined VGUIMenu id's
Reply With Quote #5

Quote:
Originally Posted by NiHiLaNTh View Post
It's a string, so it should be like that

Code:
new MenuCode[ 32 ];
get_msg_arg_string( 4, MenuCode, charsmax( MenuCode ) );
ye, but it did not return Team_Select on first join, weird! String is empty. Team_Select is only value, that is not set.
__________________
n00b

Last edited by sickM0nkey; 08-24-2012 at 15:23.
sickM0nkey 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 05:41.


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