Raised This Month: $37 Target: $400
 9% 

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-12-2019 , 00: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 , 01: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 01:09.
8guawong is offline
NanoC
Senior Member
Join Date: Jan 2016
Location: Argentina
Old 01-12-2019 , 02: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/.*/
__________________
Click to join in my JailBreak/Multimod server
NanoC is offline
Send a message via Skype™ to NanoC
nguyenbaodanh
AlliedModders Donor
Join Date: Jun 2007
Location: HCMC, Vietnam
Old 01-12-2019 , 04: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 04:20.
nguyenbaodanh is offline
NanoC
Senior Member
Join Date: Jan 2016
Location: Argentina
Old 01-12-2019 , 15: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
__________________
Click to join in my JailBreak/Multimod server
NanoC is offline
Send a message via Skype™ to NanoC
nguyenbaodanh
AlliedModders Donor
Join Date: Jun 2007
Location: HCMC, Vietnam
Old 01-12-2019 , 21: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 09:12.
nguyenbaodanh is offline
PC Gamer
Senior Member
Join Date: Mar 2014
Old 01-13-2019 , 14: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 , 14: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


Thread Tools
Display Modes

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 19:41.


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