This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Load/Unload plugins in game?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kooter
Member
Join Date: Sep 2013
Old 10-01-2013 , 03:32   Load/Unload plugins in game?
Reply With Quote #1

Hi, is there currently a way to load and unload plugins in game, without the use of another plugin to do so? I've searched and found some old forum posts going back to 2008 or so that indicate you could use "sm plugins unload <name>" , but that doesn't seen to work for me using the later versions of Sourcemod. Thanks for any help.
Kooter is offline
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Old 10-01-2013 , 03:57   Re: Load/Unload plugins in game?
Reply With Quote #2

Works like a charm:

Code:
sm plugins unload mapchooser
[SM] Plugin MapChooser unloaded successfully.
sm plugins load mapchooser
[SM] Loaded plugin mapchooser.smx successfully.
__________________
brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

www.unterwasserpyromanen.de
Sillium is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 10-01-2013 , 04:00   Re: Load/Unload plugins in game?
Reply With Quote #3

To be clear, that is a server command, and not a client command. You must pass that through RCON.

in your rcon client (hlsw or what have you)
Code:
sm plugins unload mapchooser
in your game client, with rcon_password set (and possibly rcon_address)
Code:
rcon sm plugins unload mapchooser
in your client, while connected to a server where you have the RCON admin flag
Code:
sm_rcon sm plugins unload mapchooser
etc, etc, etc
__________________

Last edited by ddhoward; 10-01-2013 at 04:14.
ddhoward is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-01-2013 , 04:15   Re: Load/Unload plugins in game?
Reply With Quote #4

...Sillium & ddhoward already asnwerit.

Spoiler
Bacardi is offline
Kooter
Member
Join Date: Sep 2013
Old 10-01-2013 , 04:47   Re: Load/Unload plugins in game?
Reply With Quote #5

That makes sense. Thank you guys very much for clearing that up for me, I really appreciate it. I will try all of this out.

Last edited by Kooter; 10-01-2013 at 04:49.
Kooter is offline
Konstantin
Senior Member
Join Date: Nov 2012
Old 10-01-2013 , 06:26   Re: Load/Unload plugins in game?
Reply With Quote #6

Quote:
Originally Posted by Bacardi View Post
...Sillium & ddhoward already asnwerit.

Spoiler
I do not understand... If the plugin is already in disabled folder, why
Quote:
sm plugins unload disabled/pluginname
?
__________________
OS: Linux
Gameserver: CS:GO Mini Games
Konstantin is offline
rswallen
SourceMod Donor
Join Date: Jun 2013
Location: 127.0.0.1
Old 10-01-2013 , 06:34   Re: Load/Unload plugins in game?
Reply With Quote #7

Quote:
Originally Posted by Konstantin View Post
I do not understand... If the plugin is already in disabled folder, why ?
Quote:
Originally Posted by Bacardi View Post
Then, if want unload that plugin on "every" map, add in ...cfg/server.cfg
sm plugins unload disabled/pluginname
to unload it if it was enabled, but you now want it disabled
rswallen is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-01-2013 , 06:38   Re: Load/Unload plugins in game?
Reply With Quote #8

...after you have loaded plugin from disable folder, it will stay loaded after map changes.
I was telling in my post to load plugin on specific map, load it on one map only, not else maps

*edit
Of course! Use plugin cvar preferably if exist to enable/disable plugin.
__________________
Do not Private Message @me

Last edited by Bacardi; 10-01-2013 at 06:40.
Bacardi 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 01:20.


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