<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alliedmods.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Fireandy</id>
	<title>AlliedModders Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alliedmods.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Fireandy"/>
	<link rel="alternate" type="text/html" href="https://wiki.alliedmods.net/Special:Contributions/Fireandy"/>
	<updated>2026-05-09T12:39:23Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.6</generator>
	<entry>
		<id>https://wiki.alliedmods.net/index.php?title=War_Mode_(SourceMod)&amp;diff=5705</id>
		<title>War Mode (SourceMod)</title>
		<link rel="alternate" type="text/html" href="https://wiki.alliedmods.net/index.php?title=War_Mode_(SourceMod)&amp;diff=5705"/>
		<updated>2008-04-01T03:44:57Z</updated>

		<summary type="html">&lt;p&gt;Fireandy: /* Sample Files */  Corrected warmode_off to warmode_on and vice versa&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
&lt;br /&gt;
SourceMod does not have a &amp;quot;war mode&amp;quot; built-in.  Instead, it has options that let you lock-down SourceMod to only keep a few plugins loaded.  Matches can be completed without SourceMod interfering, and once done, SourceMod can be &amp;quot;unlocked&amp;quot; again.  This way you can still retain administrative control.&lt;br /&gt;
&lt;br /&gt;
Of course, it is subjective as to which plugins are usable in war mode.  You can tweak SourceMod to achieve the functionality you wish to retain.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Safe Plugins=&lt;br /&gt;
There are a few plugins that are absolutely safe to use for matches.  They are:&lt;br /&gt;
*&amp;lt;tt&amp;gt;adminhelp.smx&amp;lt;/tt&amp;gt; - Provides the &amp;lt;tt&amp;gt;sm_help&amp;lt;/tt&amp;gt; command.&lt;br /&gt;
*&amp;lt;tt&amp;gt;adminmenu.smx&amp;lt;/tt&amp;gt; - Provides the &amp;lt;tt&amp;gt;sm_admin&amp;lt;/tt&amp;gt; command.  Note that menu items are only added from other plugins, and thus enabling the menu plugin will not add abusive admin commands unless the plugin implementing those commands is also loaded.&lt;br /&gt;
*&amp;lt;tt&amp;gt;admin-flatfile.smx&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;admin-sql-threaded.smx&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;admin-sql-prefetch.smx&amp;lt;/tt&amp;gt; - These three plugins simply load administrators.&lt;br /&gt;
*&amp;lt;tt&amp;gt;basebans.smx&amp;lt;/tt&amp;gt; - Ban/unban functionality.  [[Admin_Commands_%28SourceMod%29#Ban/Unban Commands|Click here]] for command listing.&lt;br /&gt;
*&amp;lt;tt&amp;gt;basecommands.smx&amp;lt;/tt&amp;gt; - General, non-abusive admin commands.  [[Admin_Commands_%28SourceMod%29#Basic Commands|Click here]] for command listing.&lt;br /&gt;
&lt;br /&gt;
=War Mode Configs=&lt;br /&gt;
Implementing warmode is very simple.  Two sample configs are provided as &amp;lt;tt&amp;gt;cfg/sourcemod/sm_warmode_on.cfg&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;cfg/sourcemod/sm_warmode_off.cfg&amp;lt;/tt&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
The first file, &amp;lt;tt&amp;gt;sm_warmode_on.cfg&amp;lt;/tt&amp;gt;, does three things:&lt;br /&gt;
*Unloads all plugins.&lt;br /&gt;
*Re-loads the &amp;quot;safe&amp;quot; plugins.&lt;br /&gt;
*Locks any more plugins from being loaded.&lt;br /&gt;
&lt;br /&gt;
The second file, &amp;lt;tt&amp;gt;sm_warmode_off.cfg&amp;lt;/tt&amp;gt;, removes the plugin loading lock, and then reloads all plugins from the plugins folder (as would happen on server start).&lt;br /&gt;
&lt;br /&gt;
You can simply use &amp;lt;tt&amp;gt;sm_execcfg&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;rcon exec&amp;lt;/tt&amp;gt;, or the admin menu to run these configs.  Of course, you can also change or rename them.  Samples are provided in the default package, and also reproduced below.&lt;br /&gt;
&lt;br /&gt;
=Sample Files=&lt;br /&gt;
&amp;lt;tt&amp;gt;sm_warmode_on.cfg&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//This file unloads all plugins, re-loads a few &amp;quot;safe&amp;quot; ones, and then prevents &lt;br /&gt;
//any more plugins from being loaded.&lt;br /&gt;
sm plugins unload_all&lt;br /&gt;
sm plugins load basebans.smx&lt;br /&gt;
sm plugins load basecommands.smx&lt;br /&gt;
sm plugins load admin-flatfile.smx&lt;br /&gt;
sm plugins load adminhelp.smx&lt;br /&gt;
sm plugins load adminmenu.smx&lt;br /&gt;
sm plugins load_lock&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;sm_warmode_off.cfg&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//This file re-enables a server from &amp;quot;war mode&amp;quot; by unlocking plugin loading &lt;br /&gt;
//and refreshing the plugins list.&lt;br /&gt;
sm plugins load_unlock&lt;br /&gt;
sm plugins refresh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Fireandy</name></author>
		
	</entry>
</feed>