Monthly Target: $400 Donations: $344
 86% 

[HELP] Different Plugins per map...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fearer
New Member
Join Date: Jun 2011
Old 03-31-2012 , 14:12   [HELP] Different Plugins per map...
Reply With Quote #1

Hi

I have a Headshot mod server. But I want that this plugin turns off in some particular maps.

How I do this?


It's a CSS server with Sourcemod only.


Thanks for some advices !
Fearer is offline
MasterOfTheXP
Veteran Member
Join Date: Aug 2011
Location: Cloudbank
Old 03-31-2012 , 16:28   Re: [HELP] Different Plugins per map...
Reply With Quote #2

Try making some configs for maps you want to disable the plugin on. Like, if you wanted to disable on a map named map_01, you would make a new config in cstrike/cfgs/ named map_01.cfg. In that, you can place commands you want to execute on that map, in your case sm plugins unload <pluginname>

If that doesn't work, you could always edit the source of the plugin to check if the server is currently running a certain map, and to unload itself or refuse to do anything on that map.
__________________
Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
MasterOfTheXP is offline
Fearer
New Member
Join Date: Jun 2011
Old 03-31-2012 , 16:42   Re: [HELP] Different Plugins per map...
Reply With Quote #3

Quote:
Originally Posted by MasterOfTheXP View Post
Try making some configs for maps you want to disable the plugin on. Like, if you wanted to disable on a map named map_01, you would make a new config in cstrike/cfgs/ named map_01.cfg. In that, you can place commands you want to execute on that map, in your case sm plugins unload <pluginname>

If that doesn't work, you could always edit the source of the plugin to check if the server is currently running a certain map, and to unload itself or refuse to do anything on that map.
I'll try the first option.

Imagine the map is: aim_redline

Where should I put the aim_redline.cfg ? cstrike/cfg ?

And will this new .cfg file a priority? I mean will the commands in this file overwrite all commands in any other .cfg files?
Fearer is offline
MasterOfTheXP
Veteran Member
Join Date: Aug 2011
Location: Cloudbank
Old 03-31-2012 , 20:12   Re: [HELP] Different Plugins per map...
Reply With Quote #4

Quote:
Originally Posted by Fearer View Post
Imagine the map is: aim_redline

Where should I put the aim_redline.cfg ? cstrike/cfg ?

And will this new .cfg file a priority? I mean will the commands in this file overwrite all commands in any other .cfg files?
In cstrike/cfg, make a copy of any .cfg file that already exists and name it "aim_redline.cfg"--that's what I'd do. The new file will execute along with your others...if you want to make sure that its commands run last, typing wait 1000; before any commands should cause them to run after your usual scripts.
__________________
Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
MasterOfTheXP is offline
recon0
Veteran Member
Join Date: Sep 2007
Location: US
Old 03-31-2012 , 21:24   Re: [HELP] Different Plugins per map...
Reply With Quote #5

How to make map specific configs is stickied.
__________________
recon0 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 11:56.


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