- 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:
parent
b6e33a575f
commit
8172560f39
@ -5,5 +5,6 @@
|
||||
Configs
|
||||
{
|
||||
"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"
|
||||
}
|
||||
|
4
configs/cfg/sm_warmode_off.cfg
Normal file
4
configs/cfg/sm_warmode_off.cfg
Normal 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
|
9
configs/cfg/sm_warmode_on.cfg
Normal file
9
configs/cfg/sm_warmode_on.cfg
Normal 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
|
@ -363,13 +363,11 @@ void CPlugin::Call_OnAllPluginsLoaded()
|
||||
|
||||
cell_t result;
|
||||
IPluginFunction *pFunction = m_ctx.base->GetFunctionByName("OnAllPluginsLoaded");
|
||||
if (!pFunction)
|
||||
if (pFunction != NULL)
|
||||
{
|
||||
return;
|
||||
pFunction->Execute(&result);
|
||||
}
|
||||
|
||||
pFunction->Execute(&result);
|
||||
|
||||
if (g_OnMapStarted)
|
||||
{
|
||||
if ((pFunction = m_ctx.base->GetFunctionByName("OnMapStart")) != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user