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

Change Plugins with map or Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nyx
New Member
Join Date: Apr 2019
Old 04-23-2019 , 06:58   Change Plugins with map or Menu
Reply With Quote #1

Hello!

We plan to create a multimod Server for community events with surf, DM, GunGame, AWP only etc.

Is there any way to change plugins with the played gamemode? We don't mind using commands or menues to enable/disable plugins. (For example choose "Surf" and the different plugins with the exec is being loaded.)

Preferably, the mods would switch with each map, like when a Surf map is coming up, Surf plugins load with it or disable unused plugins for that mode.

Greetings.
Nyx is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 04-23-2019 , 07:42   Re: Change Plugins with map or Menu
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?p=607079
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
Nyx
New Member
Join Date: Apr 2019
Old 04-23-2019 , 07:54   Re: Change Plugins with map or Menu
Reply With Quote #3

Thanks!

That atleast solves the exec "problem"

But what about different plugins? Is there a way to do that?

Greetings.
Nyx is offline
Cruze
Veteran Member
Join Date: May 2017
Old 04-23-2019 , 10:12   Re: Change Plugins with map or Menu
Reply With Quote #4

sm plugins load pluginname
sm plugins unload pluginname
__________________
Taking paid private requests! Contact me
Cruze is offline
AuricYoutube
Senior Member
Join Date: Aug 2016
Location: Here
Old 04-23-2019 , 13:13   Re: Change Plugins with map or Menu
Reply With Quote #5

Quote:
Originally Posted by Cruze View Post
sm plugins load pluginname
sm plugins unload pluginname
more in depth u unload all the plugins that you want to load in specific maps with sm plugins unload in server.cfg and sm plugins load in the map configs for the plugins u want to load in the map prefix

the reason u unload in server.cfg is because server.cfg is executed every mapchange and actually executes before the mapconfig plugin does which fixes some late load issues.
AuricYoutube 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:17.


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