View Single Post
Author Message
canadianjeff
BANNED
Join Date: Sep 2016
Old 10-16-2018 , 01:19   [L4D2] Helms Deep Sourcemod Enabler
#1

Description:
Allows for the running of the helms deep reborn map on a sourcemod server and responds to built in commands

Installation:
put l4d2_helmsdeep.smx into /addons/sourcemod/plugins

Credits:
everyone who helped me in the sourcemod discord server

The author of the map placed code inside the .vpk in a .nut file with the following code that would check if sourcemod was running and kick everyone who tried to join
Code:
	if ( !HelmsServerInfo.checked_plugins )
	{
		local metamodVersion = Convars.GetStr("metamod_version");
		local sourcemodVersion = Convars.GetStr("sourcemod_version");
	
		if ( !metamodVersion && !sourcemodVersion )
			HelmsServerInfo.has_plugins = false;
		else
			HelmsServerInfo.has_plugins = true;
		
		HelmsServerInfo.checked_plugins = true;
	}
	
	if ( HelmsServerInfo.has_plugins )
	{
		foreach( player in Players.Humans() )
		{
			SendToServerConsole( "kickid " + player.GetSteamID() + " " + "This server is using plugins, please join a different server" );
		}
	}
what this plugin does is intercept the kickid command (with that matching string) and stop it from being used and allowing all players to join

Updates:
Now has better map detection (by request)
Psyk0tik (discord) has improved the donator command
Now it is menu driven to get the item you want
Has the cvar to enable or disable the donator menu
Updated Syntax (by request)
Now has spawn limits to prevent spamming

Last edited by asherkin; 03-07-2022 at 03:43. Reason: Restore to previous version.
canadianjeff is offline