Auto join, replace class menu properly
Hello.
I've read somewhere that chooseteam can be bypassed. Well, what i need is to block team choice and replace for my own class menu. When the player choose the class i will force to join team/class, that's not the problem. I checked Exolent's team manager plugin and i saw he did some stuff related to vgui but i really don't know what it does so, i need to know how i can make this properly. |
Re: Auto join, replace class menu properly
Have you tried to learn from Exolent's code? Have you tried to use his method to hook the proper event for showing your class menu?
To make it simple, just force them to auto-join spectators and then put up your menu and set their team like you originally planned. |
Re: Auto join, replace class menu properly
Well i guess that's a nice option too.
But i don't want to allow jointeam command after doing that. My idea before was to let 0 spawnpoints for Terro teams so they can't join Terro. And disable allowspectators cvar. But i need this so what about this? It can be bypassed? PHP Code:
|
Re: Auto join, replace class menu properly
Quote:
PHP Code:
Edit: Nvm, no idea what u mean.. :) |
Re: Auto join, replace class menu properly
Quote:
|
Re: Auto join, replace class menu properly
You need to hook old and new menus to work with teams no? If i understand look at pugmod source:
I blocked change teams in some situations, i think that can help you. Ps. https://github.com/SmileYzn/CS_PugMo...ting/PugCS.sma |
Re: Auto join, replace class menu properly
Quote:
@fysiks idk that's why i am asking. I heard hooking chooseteam menu can be bypassed. Idk if the guy meant also need to hook jointeam/class or if he meant it can be bypassed as the blocked commands after 2013 update. |
Re: Auto join, replace class menu properly
To me, it's still rather unclear what your asking.
Blocking the menus? Simply hook ShowMenu and VGUIMenu messages ( and filter for the correct values ) and block them. Showing your own class menu? You can just show it after blocking the other menus. Force team join? Just use engclient_cmd( "jointeam" .... ) . And then you won't have to worry about jointeam used after that because it will be blocked. |
All times are GMT -4. The time now is 14:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.