How can I create map configs?

Post Reply
kitten
A regular
A regular
Posts: 44
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Oct 13, 2005 6:03 pm

How can I create map configs?

Post by kitten »

Hey all,

I was wondering what essentially I need to create a config for a map. For example, I would like to configure all my "fy" maps to have "mp_freezetime 0" and maps like scoutzknivez and scoutzknivez to have "mp_freezetime 0" + "sv_gravity 230". This way I don't have to always load up the settings and when people are playing without an admin, they don't have to worry about it either.

I am assuming I will need to create a separate file for each map, but what I am not sure of is if there is anything required to make a map config work. Your assistance in this matter is greatly appreciated.

Thanks,
User avatar
Nick|NFo
Former staff
Former staff
Posts: 2252
Joined: Sun Mar 30, 2003 1:56 pm
Location: 127.0.0.1

Post by Nick|NFo »

If you are running adminmod, you can place mapname.cfg files into the main directory with those cvars inside the config file. If you are running amxmodx, make a folder named maps in the addons/amxmodx/configs/ directory on your FTP, then place your mapname.cfg's into that folder. Should look like addons/amxmodx/configs/maps/. If you are running both, choose either way :)

scoutzknivez.cfg

sv_gravity 230
mp_freezetime 0
-Nick
kitten
A regular
A regular
Posts: 44
Joined: Thu Oct 13, 2005 6:03 pm

Post by kitten »

Nick|NFo wrote:If you are running adminmod, you can place mapname.cfg files into the main directory with those cvars inside the config file. If you are running amxmodx, make a folder named maps in the addons/amxmodx/configs/ directory on your FTP, then place your mapname.cfg's into that folder. Should look like addons/amxmodx/configs/maps/. If you are running both, choose either way :)

scoutzknivez.cfg

sv_gravity 230
mp_freezetime 0
Cool, that is all I need to put in the cfg file?

I will try it out. Thanks! :)
User avatar
Nick|NFo
Former staff
Former staff
Posts: 2252
Joined: Sun Mar 30, 2003 1:56 pm
Location: 127.0.0.1

Post by Nick|NFo »

kitten wrote:
Cool, that is all I need to put in the cfg file?

I will try it out. Thanks! :)
Yep, two separate lines, at the top of the config.
-Nick
Post Reply