Raised This Month: $51 Target: $400
 12% 

Solved Properly blocking team change


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-21-2018 , 17:59   Properly blocking team change
Reply With Quote #1

Hi,

What's the proper way of completely getting rid of team changing and using an automatic way.
As far as I remember, I've tried using set_msg_block on VGUIMenu but it didn't work properly I think, but anyways, I want to know your ideas.
I want to get rid of anything that pops up when you click M button.
__________________

Last edited by edon1337; 06-28-2018 at 10:49.
edon1337 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 02-21-2018 , 20:51   Re: Properly blocking team change
Reply With Quote #2

Hook chooseteam and jointeam commands and return PLUGIN_HANDLED?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-22-2018 , 06:21   Re: Properly blocking team change
Reply With Quote #3

Quote:
Originally Posted by EFFx View Post
Hook chooseteam and jointeam commands and return PLUGIN_HANDLED?
Nope
__________________
edon1337 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 02-22-2018 , 08:32   Re: Properly blocking team change
Reply With Quote #4

Look at one of the auto team join or team manager plugins.
__________________

Last edited by HamletEagle; 02-22-2018 at 08:32.
HamletEagle is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-22-2018 , 13:27   Re: Properly blocking team change
Reply With Quote #5

Quote:
Originally Posted by HamletEagle View Post
Look at one of the auto team join or team manager plugins.
It's messy, can't understand anything, it has tons of tasks that are un-needed so I couldn't understand the method of it.
__________________
edon1337 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-22-2018 , 13:30   Re: Properly blocking team change
Reply With Quote #6

Tons of Un needed tasks are you sure about that?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 02-22-2018 at 13:32.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 02-22-2018 , 13:36   Re: Properly blocking team change
Reply With Quote #7

If you don't understand anything how do you know it's useless?
Anyway you should stop expecting people to do everything for you each time.
At least for once try to make an effort and come with a concrete question, not give me a code that does x. Here you could ask what exactly you do not understand from said plugins.

Did you try to put messages and see when everything is called?
Did you try to divide the plugin in multiple parts and search information about specific things?
Did you try to understand what each function from this plugins is doing?
Did you try to compare multiple team management plugins and see what they have in common?

I'm not being mean, if you do not get used with doing stuff on your own you will never learn. Figuring how things work by yourself helps a lot, trust me.
__________________

Last edited by HamletEagle; 02-22-2018 at 13:37.
HamletEagle is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-22-2018 , 14:43   Re: Properly blocking team change
Reply With Quote #8

Does blocking ShowMenu and VGUIMenu messages block the team choosing pop-up on player connect? I'm trying to completely remove the pop-up window and automatically send players to spectator.
__________________
edon1337 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 02-22-2018 , 15:18   Re: Properly blocking team change
Reply With Quote #9

Use First MOTD Block and use team_join cvar as 6 in Instant Team Balance plugin.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 02-22-2018 , 15:51   Re: Properly blocking team change
Reply With Quote #10

Quote:
Originally Posted by edon1337 View Post
Does blocking ShowMenu and VGUIMenu messages block the team choosing pop-up on player connect? I'm trying to completely remove the pop-up window and automatically send players to spectator.
Try it for yourself, it's something simple to test.
__________________
HamletEagle 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 13:33.


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