View Single Post
Author Message
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 08-16-2012 , 23:06   [TF2] MvM Auto-lock Server (v1.2)
Reply With Quote #1

As in the description, once 6 people are connected, a password is set on the server (a message is printed to chat saying so).

There's also a steamtools/connect plugin in there, but it is untested and so disabled (it's not even in the .smx when you click Get Plugin). To enable it you'll have to recompile with //#define USE_STEAMTOOLSCONNECT uncommented.

Convars:
mvmautolock_version 1.2 - don't touch
mvm_password - Password to set once the server has 6 or more people. If unset, the plugin will not be enabled.

Code:
August 20, 2012 (v1.2)
*Fixed a bug where a password would be set even if <6 players

August 16, 2012 (v1.1)
*Revised so that password is only removed if sv_password matches mvm_password
*If mvm_password is changed and sv_password is the same as mvm_password, sv_password is changed to match the new value as well.

August 16, 2012 (v1.0)
*Initial release.
Previous plugin views - 240
Attached Files
File Type: sp Get Plugin or Get Source (mvmautolock.sp - 1131 views - 4.3 KB)
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.

Last edited by FlaminSarge; 08-20-2012 at 21:37.
FlaminSarge is offline