Raised This Month: $ Target: $400
 0% 

Catch player choosing team.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 05-07-2013 , 12:13   Catch player choosing team.
Reply With Quote #1

Hi,

I need to know how to detect when a player presses the team select menu key (for example: M). I need this team select menu to be replaced by another menu, how do i this?
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Unkolix
Veteran Member
Join Date: Sep 2012
Old 05-07-2013 , 12:14   Re: Catch player choosing team.
Reply With Quote #2

This might be helpful for you: http://forums.alliedmods.net/showthread.php?t=184918
Unkolix is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 05-07-2013 , 12:29   Re: Catch player choosing team.
Reply With Quote #3

Thanks, will try this
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-07-2013 , 17:17   Re: Catch player choosing team.
Reply With Quote #4

You have to let cs do the job, just alter the visual menu : http://forums.alliedmods.net/showpos...35&postcount=4
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Decompiler
>:)
Join Date: Mar 2013
Old 05-07-2013 , 17:47   Re: Catch player choosing team.
Reply With Quote #5

Quote:
Originally Posted by ConnorMcLeod View Post
You have to let cs do the job, just alter the visual menu : http://forums.alliedmods.net/showpos...35&postcount=4
Not to hijack the thread, but can you force that plugin to use the oldVGUI?
Decompiler is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-07-2013 , 18:58   Re: Catch player choosing team.
Reply With Quote #6

Yes, just hook "chooseteam" command and set vgui pdata to false on there.
If i have to gonna do it.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Decompiler
>:)
Join Date: Mar 2013
Old 05-07-2013 , 19:27   Re: Catch player choosing team.
Reply With Quote #7

Quote:
Originally Posted by ConnorMcLeod View Post
Yes, just hook "chooseteam" command and set vgui pdata to false on there.
If i have to gonna do it.
If by the last part you mean you wouldn't mind doing it, then yeah, that would be great.
I would like to think that I know how to hook "chooseteam", but I'd rather be sure that the code is 100% good, as I'm still prone to rookie mistakes.
Decompiler is offline
Decompiler
>:)
Join Date: Mar 2013
Old 05-09-2013 , 23:21   Re: Catch player choosing team.
Reply With Quote #8

I see, thanks. It took me a while to figure out what you meant by pdata, but now that I looked it up it all makes sense. Thanks.
Decompiler 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 10:51.


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