Raised This Month: $ Target: $400
 0% 

Map config -> enable plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 06-01-2010 , 10:41   Re: Map config -> enable plugin
Reply With Quote #1

When server launched and after map change.
SourceMod load all plugins automatically from
Code:
...addons/sourcemod/plugins/

and from sub -folders example 
...addons/sourcemod/plugins/my_new_folder/
Except one.
Plugins what are in disabled folder
Code:
...addons/sourcemod/plugins/disabled/
and sub -folders from there
Those plugins not run until you manually load them.
Using command sm plugins load disabled/plugin_name.smx

- So try in map config add that sm plugins load disabled/plugin_name.smx
- And add also in ...cfg/server.cfg command sm plugins unload disabled/plugin_name.smx

If I don't remember wrong when certain map appears, server execute first
server.cfg = where is unload command
after then map config (...maps/cfg/map_name.cfg) = where you load plugin.

*edit
Then of course, map change to other where is no "plugin load command" in map config and server.cfg unload plugins.

*edit
Some (old) plugins maybe crash server when unload or load back.
So try "benchmark" that plugins before you start using it about this way.


*secondedit
I tried also build this kind, plugin change depend time of the week
But almost succeed
[Hint & Tip] Schedule server cfg & plugins (unfinished)

Last edited by Bacardi; 06-01-2010 at 13:38.
Bacardi 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 00:28.


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