AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   [HELP] Different Plugins per map... (https://forums.alliedmods.net/showthread.php?t=181628)

Fearer 03-31-2012 14:12

[HELP] Different Plugins per map...
 
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 !

MasterOfTheXP 03-31-2012 16:28

Re: [HELP] Different Plugins per map...
 
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.

Fearer 03-31-2012 16:42

Re: [HELP] Different Plugins per map...
 
Quote:

Originally Posted by MasterOfTheXP (Post 1679416)
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?

MasterOfTheXP 03-31-2012 20:12

Re: [HELP] Different Plugins per map...
 
Quote:

Originally Posted by Fearer (Post 1679428)
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.

recon0 03-31-2012 21:24

Re: [HELP] Different Plugins per map...
 
How to make map specific configs is stickied.


All times are GMT -4. The time now is 18:59.

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