Raised This Month: $51 Target: $400
 12% 

plugin per map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Neon123
Senior Member
Join Date: Jan 2016
Old 02-15-2019 , 17:04   plugin per map
Reply With Quote #1

hi, its possible to force a sourcemod plugin to run only in one map ?
Neon123 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 02-15-2019 , 18:30   Re: plugin per map
Reply With Quote #2

I would use the plugin "Map configs with prefix support" by berni (link: https://forums.alliedmods.net/showthread.php?p=607079 )

After I installed the above, I would then put the plugin you want to load for one map in your plugins/disabled folder.

I would then create a text file called mapname.cfg in the cfg/sourcemod/map-cfg folder. The contents of the mapname.cfg file should contain a line with sm plugins load \disabled\pluginname

I hope this makes sense...
PC Gamer is offline
Neon123
Senior Member
Join Date: Jan 2016
Old 02-15-2019 , 18:41   Re: plugin per map
Reply With Quote #3

thanks, i will try your method
Neon123 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 02-15-2019 , 18:56   Re: plugin per map
Reply With Quote #4

Also, to be safe you should place an unload command in your server.cfg file.

sm plugins unload disabled\pluginname
PC Gamer 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 02:50.


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