I had the same trouble. And after some tests it was impossible to unload CSDM module.
Now, as I've already said in an another post, my method:
- csdm_main.amxx enabled in
plugins.ini
- all csdm configuration is disabled by default. (
csdm.cfg)
- all
csdm_**.amxx files are disabled by default except
csdm_main.amxx plugin.
If I want to enable csdm on a map, I use a per-map configuration file and per-map plugin configuration file.
Ie : de_dust
/configs/csdm/extraconfig/
de_dust.cfg (
only need to include what's different from the master csdm.cfg file ) :
Code:
[settings]
;Sets whether CSDM is enabled or not.
enabled = 1
;Sets the spawn mode.
; "none" - users spawn at normal map spawn points
; "preset" - csdm_spawn_preset.amxx required, uses predefined spawns in config files
; -- others may be supplied by 3rd party plugins
spawnmode = preset
;Sets the spawn waiting time
spawn_wait_time = 3
[items]
;Is item mode enabled?
enabled = 1
;[...] Just put here what you need
configs/maps/
de_dust.cfg (
csdm is enabled now ):
Code:
csdm_reload csdm/extraconfigs/de_dust.cfg
configs/maps/
plugins-de_dust.ini :
Code:
; // .respaw file
csdm_spawn_preset.amxx
; // Misc stuff
csdm_misc.amxx
; // Spawn protection
csdm_protection.amxx
; // Free For All mode
csdm_ffa.amxx
; // Bot ffa
csdm_bot_ffa.amxx
; // Item mode
csdm_itemmode.amxx
Team_Balancer.amxx disabled
Bad_Camper.amxx disabled
; [...] cetera..
So, by default, csdm_main.amxx plugin and csdm module are only loaded but not enabled. And there are no problems. All is working fine.
All my configuration is based on this advanced configuration.
__________________