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

unload all plugins in a folder ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nguyenbaodanh
AlliedModders Donor
Join Date: Jun 2007
Location: HCMC, Vietnam
Old 01-11-2019 , 23:04   unload all plugins in a folder ?
Reply With Quote #1

Searching around a way to unload plugins that inside a folder instead of unload each one by "sm plugins unload" command in a config

are there a way to do that ?
Example :
we put 10 plugins in side a 10PLUGINS folder
then we just need to
sm plugins unload /10PLUGINS/
__________________
nguyenbaodanh is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 01-12-2019 , 00:09   Re: unload all plugins in a folder ?
Reply With Quote #2

not i know of
would be cool idea
__________________

Last edited by 8guawong; 01-12-2019 at 00:09.
8guawong is offline
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Old 01-12-2019 , 01:08   Re: unload all plugins in a folder ?
Reply With Quote #3

You can use this plugin to do that
For example:
plugins unload /MyJailbreak/.*/
plugins unload /10PLUGINS/.*/
__________________
NanoC is offline
Send a message via Skype™ to NanoC
nguyenbaodanh
AlliedModders Donor
Join Date: Jun 2007
Location: HCMC, Vietnam
Old 01-12-2019 , 03:05   Re: unload all plugins in a folder ?
Reply With Quote #4

Quote:
Originally Posted by NanoC View Post
You can use this plugin to do that
For example:
plugins unload /MyJailbreak/.*/
plugins unload /10PLUGINS/.*/
Thanks for fast responding !
can it be use with this plugin ?
https://forums.alliedmods.net/showthread.php?t=69506
__________________

Last edited by nguyenbaodanh; 01-12-2019 at 03:20.
nguyenbaodanh is offline
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Old 01-12-2019 , 14:07   Re: unload all plugins in a folder ?
Reply With Quote #5

i think you can, i've used both plugins and it worked some months ago
__________________
NanoC is offline
Send a message via Skype™ to NanoC
nguyenbaodanh
AlliedModders Donor
Join Date: Jun 2007
Location: HCMC, Vietnam
Old 01-12-2019 , 20:51   Re: unload all plugins in a folder ?
Reply With Quote #6

Quote:
Originally Posted by NanoC View Post
i think you can, i've used both plugins and it worked some months ago
I just tested yesterday . not work ... can not load or unload all 117 zombie plague plugins in its folder
__________________

Last edited by nguyenbaodanh; 01-13-2019 at 08:12.
nguyenbaodanh is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 01-13-2019 , 13:23   Re: unload all plugins in a folder ?
Reply With Quote #7

Maybe use: sm plugins unload_all

And then load the ones you want with: sm plugins load XXX where XXX is the plugin name.
PC Gamer is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-13-2019 , 13:29   Re: unload all plugins in a folder ?
Reply With Quote #8

you can see example from ...cfg/sourcemod/sm_warmode_on.cfg

you can also lock/unlock state, to avoid loading plugins more.

You can load plugins from disabled folder, which not automatically load on map change.
__________________
Do not Private Message @me
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 17:20.


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