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

How to properly unload a plugin (not sm plugins unload)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eljoker
New Member
Join Date: Sep 2018
Old 09-19-2018 , 12:56   How to properly unload a plugin (not sm plugins unload)
Reply With Quote #1

Hello everyone! My question is how can I configure a multimod server (CS:GO). I'm currently using Ultimate Map Chooser 3 plugin which lets me execute a command by each map.

My problem is that I want to load PropHunt plugin (to play hide and Seek) just to play de_dust2. If I choose another map the plugin shouldn't be loaded.

The way I'm doing it is putting prophunt.smx at disabled sourcemod/plugins folder. So by default, prophunt.smx is disabled. When I go to de_dust2, I execute "sm plugins load disabled/prophunt" and it loads correctly.

The problem comes now. When I change to another map, prophunt.smx doesn't unload. So, I thought, "ok, just do "sm plugins unload disabled/prophunt". But when I do that, the plugin unloads correctly but it let the server with custom configurations (like TT seeming like traffics signals and so on). So the problem is:

how can I reload the default server status on each map change? (including those things that prophunt.smx does to it)

Thank you!
eljoker is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 09-19-2018 , 14:16   Re: How to properly unload a plugin (not sm plugins unload)
Reply With Quote #2

this is not a problem of "un/load a plugin". This is a problem within the plugin.
You should contact the plugin author to fix this. (remove related configs on OnPluginEnd())

Quote:
Originally Posted by eljoker View Post
...
how can I reload the default server status on each map change? (including those things that prophunt.smx does to it)...
A sloppy workaround would be to execute gamemode_xxx.cfg with umc (doesn't it already exec on every mapchange?). edit

Or maybe use additional bernies map configs plugin https://forums.alliedmods.net/showthread.php?p=607079
__________________
coding & free software

Last edited by shanapu; 09-19-2018 at 18:29.
shanapu 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 15:39.


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