View Full Version : plugins for a map cfg
=*MDMILBURN*=
11-18-2009, 12:04 AM
so if i want a plug to work on 2 or 3 maps only is it possible to add them a certain way to a map cfg. ?
meathead
11-18-2009, 01:13 AM
its a map.ini in the dod/addons/amxmodx/configs/maps folder.
=*MDMILBURN*=
11-18-2009, 08:15 AM
yes i have those but adding it in the file did not help , i was wanting to check here and see if i am doing it right ( should i not even have it listed in the plugins file ?) its turned off there
meathead
11-18-2009, 08:40 AM
what i did was make an map.ini for every single map on my server. enable the plugin in the plugins.ini by having the name of the plugin there ex, dodrandom. then turn it on and off in the map.ini's with the cvar for the plugin, ex. like amx_random 0 or amx_random 1. Might be an easier way, but thats what worked for me.
=*MDMILBURN*=
11-18-2009, 09:45 AM
ahh i see ,I was hoping to not go to that extreme but if that's the only way ,so be it
thank you
diamond-optic
11-18-2009, 01:45 PM
make sure youre doing it this way: http://wiki.amxmodx.org/Configuring_AMX_Mod_X#Map_Specific_Plugins
noddy
11-18-2009, 02:29 PM
I do it the way D-O suggests for example, I run the mortar plugin when
dod_2pillboxes loads
I created a folder called maps in my amxmodx\configs then added a file called plugins-dod_2pillboxes.ini with mortar_class.amxx added to it.
You can disable other plugins using the same method but add disabled after the plugin.
This works a treat.
=*MDMILBURN*=
11-18-2009, 11:21 PM
so i understand the maps ini ..but i use a maps cfg instead (its in the amx/config/maps file)
so if i want to remove a plug from a map ,it should say..
example
;dod_throw_rock.amxx
or should it be
dod_throw_rock.amxx disabled
noddy
11-18-2009, 11:56 PM
using the addons\amxmodx\configs\maps\plugins-dod_mapname.ini
method then dod_throw_rock.amxx disabled will work
I do not know about your map cfg I normally use the map cfg to change things like random but I then use the plugins-dod_mapname.ini for enable or disable plugins specific to a map. eg some older maps give a precache error if you have plugins running that use sprites dod_custard is one that springs to mind. You can easily disable a lot of plugins using the plugins-dod_custard.ini
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.