- added "war mode" options to config menu cfg

- fixed a regression bug where OnConfigsExecuted() wouldn't get executed.  oops!

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401637
This commit is contained in:
David Anderson 2007-10-22 05:53:38 +00:00
parent b6e33a575f
commit 8172560f39
4 changed files with 17 additions and 5 deletions

View File

@ -5,5 +5,6 @@
Configs Configs
{ {
"cfg/server.cfg" "Standard Server Setup" "cfg/server.cfg" "Standard Server Setup"
"cfg/sourcemod/sourcemod.cfg" "SourceMod Settings" "cfg/sourcemod/sm_warmode_on.cfg" "War Mode On"
"cfg/sourcemod/sm_warmode_off.cfg" "War Mode Off"
} }

View File

@ -0,0 +1,4 @@
//This file re-enables a server from "war mode" by unlocking plugin loading
//and refreshing the plugins list.
sm plugins load_unlock
sm plugins refresh

View File

@ -0,0 +1,9 @@
//This file unloads all plugins, re-loads a few "safe" ones, and then prevents
//any more plugins from being loaded.
sm plugins unload_all
sm plugins load basebans.smx
sm plugins load basecommands.smx
sm plugins load admin-flatfile.smx
sm plugins load adminhelp.smx
sm plugins load adminmenu.smx
sm plugins load_lock

View File

@ -363,12 +363,10 @@ void CPlugin::Call_OnAllPluginsLoaded()
cell_t result; cell_t result;
IPluginFunction *pFunction = m_ctx.base->GetFunctionByName("OnAllPluginsLoaded"); IPluginFunction *pFunction = m_ctx.base->GetFunctionByName("OnAllPluginsLoaded");
if (!pFunction) if (pFunction != NULL)
{ {
return;
}
pFunction->Execute(&result); pFunction->Execute(&result);
}
if (g_OnMapStarted) if (g_OnMapStarted)
{ {