Raised This Month: $ Target: $400
 0% 

How to disable CSDM for certain maps


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-25-2007 , 06:44   Re: Dont remove weapons
Reply With Quote #7

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.
__________________

Last edited by Arkshine; 02-25-2007 at 06:56.
Arkshine is offline
 



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 00:04.


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