[SOLVED] Proper way to block team select menu popup on connect
Hello everyone. On connection i want to show menu of my own instead of choose team menu.
That what i tried to do: PHP Code:
|
Re: Proper way to block team select menu popup on connect
Fixed. There are actually 3 team select menu messages. You also have to call chooseteam manually to get access to them.
PHP Code:
|
Re: [SOLVED] Proper way to block team select menu popup on connect
The exact name you are searching is #Team_Select_Spect, all you have to do is to set string msg to "" (null string), or may be "\n", and to set keys arg to 0.
All old menus are there : http://forums.alliedmods.net/showthread.php?t=130708 You may want to find a way to block VGUI menu as well. With orpheu, you should completely prevent both menus from being sent. |
Re: [SOLVED] Proper way to block team select menu popup on connect
ConnorMcLeod
Thank you for your reply! Unfortunelly method with nulling message didn't help. Buy I didn't try to set other args to 0, maybe this was what i needed. I guess i given up manipulating with message itself after I failed to block it. But why set_msg_block(msgid, BLOCK_SET) and return PLUGIN_HANDLED didn't work? I mean, this message is not even supposed to be passed to client, but keys and menu handle somehow get registered on client side - and when you press 1 in ANY menu, you will join terrorist team and class menu will pop up. About VGUI menu - since i didn't find reliable way to hide it, I disable VGUI menu by setting _vgui_menus to 0 on player connect and then enable it right before re-showing team select menu to player (after player done with custom menu). |
Re: [SOLVED] Proper way to block team select menu popup on connect
Can someone show a better way, instead of slowhacking?
I would like to show a custom menu after pressing "OK" in the MOTD. PHP Code:
|
Re: [SOLVED] Proper way to block team select menu popup on connect
That's not considered slowhacking, because you aren't actually changing his binds, and making them press slot10 won't actually affect their gameplay nor their binds in any way.
Correct me if I'm wrong :O |
Re: [SOLVED] Proper way to block team select menu popup on connect
I meant the post from Sonic as slowhacking.
|
Re: [SOLVED] Proper way to block team select menu popup on connect
Don't think that's slowhacking either.
|
Re: [SOLVED] Proper way to block team select menu popup on connect
It changed a client's cvar without his permission, so i'm pretty sure it is slowhacking.
|
Re: [SOLVED] Proper way to block team select menu popup on connect
Just curious, am I blind but what client cvar did any of these codes change ? O.o
|
| All times are GMT -4. The time now is 20:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.