Raised This Month: $32 Target: $400
 8% 

Load/Unload plugins on map change?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kin2InuYasha
Member
Join Date: Nov 2010
Old 11-16-2010 , 15:35   Load/Unload plugins on map change?
Reply With Quote #1

Hi,

I was wondering if there was a command/script/plugin to automatically load or unload a plugin when the map changes?

Example: I would like the checkpoints mod enabled when the server is on a XC map, but not when on a surf map. I would like deathmatch mod on when on a surf map and not a XC map.

I'm not always near a console so I was just wondering if there was a way to assign the mods to maps instead of loading/unloading the plugins manually.

Thank you.
Kin2InuYasha is offline
sinblaster
Grim Reaper
Join Date: Feb 2010
Location: Australia
Old 11-16-2010 , 16:57   Re: Load/Unload plugins on map change?
Reply With Quote #2

you could create a map config and try that, its the only way I know how.

/maps/cfg/mapname.cfg

sm plugins unload pluginn-name
sm plugins load pluginn-name
__________________
Happy Happy Joy Joy

sinblaster is offline
dirka_dirka
Veteran Member
Join Date: Nov 2009
Old 11-16-2010 , 23:43   Re: Load/Unload plugins on map change?
Reply With Quote #3

he has it backwards.. its cfg/maps/
dirka_dirka is offline
sinblaster
Grim Reaper
Join Date: Feb 2010
Location: Australia
Old 11-17-2010 , 00:45   Re: Load/Unload plugins on map change?
Reply With Quote #4

Really?

maps/cfg/ must just be for GunGame then because I have custom gravity configs for maps in exactly that place on my server and it works well.
__________________
Happy Happy Joy Joy

sinblaster is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-17-2010 , 07:06   Re: Load/Unload plugins on map change?
Reply With Quote #5

Quote:
Originally Posted by sinblaster View Post
Really?

maps/cfg/ must just be for GunGame then because I have custom gravity configs for maps in exactly that place on my server and it works well.
SRCDS map configs use this path
How to make map specific config files.



Quote:
Originally Posted by dirka_dirka View Post
he has it backwards.. its cfg/maps/
Map config plugins maybe or Mani Admin plugin use this path
__________________
Do not Private Message @me

Last edited by Bacardi; 11-17-2010 at 07:08.
Bacardi is offline
mrbeezwax
New Member
Join Date: Feb 2012
Old 10-08-2012 , 18:13   Re: Load/Unload plugins on map change?
Reply With Quote #6

do we have to add the .smx at the end of the cvar? like this, sm plugins unload pluginname.smx ?
mrbeezwax is offline
vodka00
Veteran Member
Join Date: Jun 2012
Location: Los Angeles
Old 10-08-2012 , 18:26   Re: Load/Unload plugins on map change?
Reply With Quote #7

Quote:
Originally Posted by mrbeezwax View Post
do we have to add the .smx at the end of the cvar? like this, sm plugins unload pluginname.smx ?
No, just the name without .smx.
vodka00 is offline
Ade
I love purple
Join Date: May 2010
Old 10-09-2012 , 05:03   Re: Load/Unload plugins on map change?
Reply With Quote #8

that scrds map cfg never worked for me, so i just used the map cfg plugin with prefixes, and i think that used /maps/cfg/
__________________
Ade is offline
Reply


Thread Tools
Display Modes

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 09:35.


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