Pause Metamod

Post Reply
Shoe
A regular
A regular
Posts: 58
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri Mar 05, 2004 1:30 pm

Pause Metamod

Post by Shoe »

I'm still trying to fine tune the server for scrims...

is there any way that I could enter a line of text to a cal.cfg (i know that you are not allowed to mod it) so that it pauses all of the metamod plugins.....

and then I would put a line of text in the server.cfg that would unpause them...
thanks in advance
User avatar
bOoya
Former staff
Former staff
Posts: 886
Joined: Thu Jan 15, 2004 3:46 pm
Location: Corona, CA
Contact:

Post by bOoya »

meta force_unload amx/adminmod/statsme
they will reload automatically when the server is restarted.
Shoe
A regular
A regular
Posts: 58
Joined: Fri Mar 05, 2004 1:30 pm

Post by Shoe »

ty very much.....

but i'm also try to give my lower level admins (who just have the ability to load configs) the ability to change the server back to normal

so is there a was to reload the metamod plugins?
User avatar
bOoya
Former staff
Former staff
Posts: 886
Joined: Thu Jan 15, 2004 3:46 pm
Location: Corona, CA
Contact:

Post by bOoya »

well the easy way would be to make a config that contains

Code: Select all

restart 1
amxmod can be manually reloaded (or on mapchange), and statsme will reload on map change. Adminmod unfortunately will not reload unless the server is restarted.
Shoe
A regular
A regular
Posts: 58
Joined: Fri Mar 05, 2004 1:30 pm

Post by Shoe »

so let me bounce this off you...

at the bottom of my cal.cfg i put this

Code: Select all

meta force_unload addons/statsme/dlls/sm_cstrike_mm.dll
meta force_unload addons/headshot/headshot_mm.dll
and the one for amx and admin (the question is that i unload the dll's)

use the rcon to change the map and do stuff in the scrim.
then run the server.cfg and change the map ~ and everything will be loaded again?
User avatar
bOoya
Former staff
Former staff
Posts: 886
Joined: Thu Jan 15, 2004 3:46 pm
Location: Corona, CA
Contact:

Post by bOoya »

you dont need to put the path, statsme/headshot will suffice. If you exec cal.cfg, those mods will be unloaded, if you change the map, statsme will come back, (i am unfamiliar with this headshot mod but if you do 'meta list' you should be able to see when it loads.) but unload again if cal.cfg is exec'd.
as long as
  • a.) headshot mod thing reloads on mapchange and
    b.) the cvar 'mapchangecfgfile' is set to mapchangecfgfile "server.cfg" (rather than cal.cfg)
you should be fine.
Shoe
A regular
A regular
Posts: 58
Joined: Fri Mar 05, 2004 1:30 pm

tun.nuclearfallout.net

Post by Shoe »

ok..i got it to work

I put this in the begining of my lo3 config

Code: Select all

meta force_unload amx
meta force_unload statsme
meta force_unload hostitron
meta force_unload phpua_mm 

seems to be working but...when I want go back to being normal....I use the rcon (because everything is unloaded) to change the map.....and the server just restarts.?!?!?!?!

Kinda weird huh.
User avatar
bOoya
Former staff
Former staff
Posts: 886
Joined: Thu Jan 15, 2004 3:46 pm
Location: Corona, CA
Contact:

Post by bOoya »

using what command?
Shoe
A regular
A regular
Posts: 58
Joined: Fri Mar 05, 2004 1:30 pm

Post by Shoe »

Code: Select all

rcon changelevel de_dust
User avatar
bOoya
Former staff
Former staff
Posts: 886
Joined: Thu Jan 15, 2004 3:46 pm
Location: Corona, CA
Contact:

Post by bOoya »

interesting... the meta plugins all reload right?
Shoe
A regular
A regular
Posts: 58
Joined: Fri Mar 05, 2004 1:30 pm

Post by Shoe »

yeah...after I try to change the map...and the server reboots..all of the metamod plugins are loaded.
User avatar
Nick|NFo
Former staff
Former staff
Posts: 2252
Joined: Sun Mar 30, 2003 1:56 pm
Location: 127.0.0.1

Post by Nick|NFo »

statsme is a bit buggy on the unload aspect, see you are unloading it, not merely pausing it

theres rcon meta pause statsme, but doesnt remove statsme completely (feel free to experiment with it)

now in the 2.8 beta's of statsme, you can install that and you should have a better time disabling and reenabling statsme.

you can find it in my files at http://acura.nuclearfallout.net/files/

as for amx or admin mod's, if you unloaded that, in order to reload and process the users.ini, its a little buggy, but some experimentation is needed.

to reload a plugin, go rcon meta load statsme, rcon meta load amx and try that.

force_unload is a harsh thing for metamod to do, to forcibly unload a loaded plugin thats running, which is most likely causing this issue.
Shoe
A regular
A regular
Posts: 58
Joined: Fri Mar 05, 2004 1:30 pm

Post by Shoe »

harmm... :?
so maybe I could put those load cmds at the end of my regular server.cfg and then they'd all be loaded again?


would that be a good idea?....
anybody see anything wrong with that idea?
User avatar
bOoya
Former staff
Former staff
Posts: 886
Joined: Thu Jan 15, 2004 3:46 pm
Location: Corona, CA
Contact:

Post by bOoya »

no harm in trying it :P
User avatar
Nick|NFo
Former staff
Former staff
Posts: 2252
Joined: Sun Mar 30, 2003 1:56 pm
Location: 127.0.0.1

Post by Nick|NFo »

I would upgrade statsme to 2.8 and use pause for all mods and try that.

also could use csstats in amx instead of statsme, thus when you stop amx, you stop both amx and stats ;)
Post Reply