Disable default MOTD
I want to disable the team choosing MOTD and create a custom menu instead.
Is it legal? if so, how can I hook the MOTD and disable it? Please help Thanks. |
Re: Disable default MOTD
disabling is easy
register_clcmd("jointeam", "cmd_jointeam") register_clcmd("chooseteam", "cmd_jointeam") register_clcmd("joinclass", "cmd_joinclass") public all return PLUGIN_HANDLED then you can just create a menu and do whatever you want, but it won't get called when pressing M also you can't make another motd, only a menu and it's legal |
Re: Disable default MOTD
Thanks, it works. However, the "Select team" MOTD is still there when you connect.
Also, I'm trying to set player's team to spectator upon connect. I try it on both client_putinserver and client_connect, but it failed. Please help. Thanks. |
Re: Disable default MOTD
Quote:
keep the commands blocked tho unless you want people to use team menu after they joined |
Re: Disable default MOTD
Thanks, I'll try.
Also, you should add this to complete your sig: Quote:
|
Re: Disable default MOTD
cvar: motdfile >= "" (Default: motdfile "motd.txt");
Or simply delete the content of the motd.txt file (NOT THE FILE!) Worked to me, but in this hlds version this will crash the server (for me, a time ago) i not tested in actually days. Test and post the results here to us :) After do this, create a simple menu to show to your clients |
Re: Disable default MOTD
Quote:
|
Re: Disable default MOTD
Quote:
|
Re: Disable default MOTD
PHP Code:
|
Re: Disable default MOTD
Quote:
|
| All times are GMT -4. The time now is 21:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.