Raised This Month: $ Target: $400
 0% 

Warmode Doesn't Work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 07-22-2009 , 02:44   Warmode Doesn't Work
Reply With Quote #1

I turned on warmode, then none of the admins could use admin commands. We experienced 2 hackers, and 1 spammer who bound a key to say lots of stuff.

How do I make it so warmode lets the admins use the base commands, but not load any of the other plugins I've installed?
noodleboy347 is offline
82694
SourceMod Donor
Join Date: Apr 2007
Old 07-22-2009 , 03:42   Re: Warmode Doesn't Work
Reply With Quote #2

Edit your cfg/sourcemod/sm_warmode_on.cfg but it should be doing that already? I don't remember which SM version this is from or if it's current but it should already be doing that.

sm_warmode_on.cfg
Quote:
//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
__________________
82694 is offline
Send a message via Yahoo to 82694 Send a message via Skype™ to 82694
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 07-22-2009 , 03:53   Re: Warmode Doesn't Work
Reply With Quote #3

That's what it's set to, but I can't use any Sourcemod commands, even through rcon.

However, when I type meta list it shows up ???
noodleboy347 is offline
Doggie52
Senior Member
Join Date: Jul 2007
Location: Sweden
Old 07-22-2009 , 12:05   Re: Warmode Doesn't Work
Reply With Quote #4

I like your signature!

Warmode should only be used when doing scrims or matches - there is really no other use for it in regular situations. Do you have anything else in your warmode.cfg? Can you paste it here?
__________________
Quote:
Originally Posted by Iltafragit View Post
4kg ram i5 processor
Doggie52 is offline
82694
SourceMod Donor
Join Date: Apr 2007
Old 07-22-2009 , 13:38   Re: Warmode Doesn't Work
Reply With Quote #5

You should be able to sm_admin then exec cfg to turn back off. But like stated above unless your doing a scrimmage/match no point to exec War mode. It only loads and unloads plugins and keeps them from loading when on.
__________________
82694 is offline
Send a message via Yahoo to 82694 Send a message via Skype™ to 82694
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 07-23-2009 , 03:21   Re: Warmode Doesn't Work
Reply With Quote #6

I'm only using it for when we're playing a game. Otherwise, it's an achievement server with tons of plugins. I just want this for the nights when we run actual Valve maps.
On:
Code:
//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
Off:
Code:
//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
noodleboy347 is offline
Pietje
Member
Join Date: Oct 2007
Old 07-23-2009 , 10:37   Re: Warmode Doesn't Work
Reply With Quote #7

Its all wrong cause it has to do with enabling warmode 2x.

The solution is simple just add sm plugins load_unlock above sm plugins
unload_all of the sm_warmode_on.cfg file, so it will unlock the plugins and
then unload and load savely the war mode plugins.

Example:
Code:
//This file unloads all plugins, re-loads a few "safe" ones, and then prevents 
//any more plugins from being loaded.
sm plugins load_unlock
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
The sm plugins load_unlock is to unlock the plugins so SM will reload all the commands, otherwise it unloads all plugins but can not load the basic plugins cause the plugin lock is still on.

Btw it is reported to SM already

Last edited by Pietje; 07-23-2009 at 10:43.
Pietje is offline
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 07-23-2009 , 18:03   Re: Warmode Doesn't Work
Reply With Quote #8

Quote:
Originally Posted by Pietje View Post
Its all wrong cause it has to do with enabling warmode 2x.

The solution is simple just add sm plugins load_unlock above sm plugins
unload_all of the sm_warmode_on.cfg file, so it will unlock the plugins and
then unload and load savely the war mode plugins.

Example:
Code:
//This file unloads all plugins, re-loads a few "safe" ones, and then prevents 
//any more plugins from being loaded.
sm plugins load_unlock
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
The sm plugins load_unlock is to unlock the plugins so SM will reload all the commands, otherwise it unloads all plugins but can not load the basic plugins cause the plugin lock is still on.

Btw it is reported to SM already
Cool, thanks! I'll try it out ASAP.
noodleboy347 is offline
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 07-23-2009 , 18:21   Re: Warmode Doesn't Work
Reply With Quote #9

ummm team fortress 2 doesnt even have machine guns...
__________________

DontWannaName is offline
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 07-24-2009 , 17:16   Re: Warmode Doesn't Work
Reply With Quote #10

Quote:
Originally Posted by DontWannaName View Post
ummm team fortress 2 doesnt even have machine guns...
It's the group name... it's a TF2 meme from the Steam forums.
noodleboy347 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode