View Single Post
Diddley4209
Junior Member
Join Date: May 2020
Old 05-18-2020 , 13:59   Re: Is there a way to make certain cvars be executed when a map ends?
Reply With Quote #3

Quote:
Originally Posted by DJEarthQuake View Post
For each map, you can also add a configuration file that will execute when the map loads. This is useful to set certain settings for 3rd party maps, say, removing the freeze time on fy_iceworld.

To do this, simply create a folder in addons\amxmodx\configs called "maps" and place a .cfg file named after the map with the settings in it, for example, you might have addons\amxmodx\configs\maps\fy_iceworld.cfg.

Otherwise to do it at 'the end', make a regular config file like server.cfg. Create plugin with Set_task_ex with flag SetTask_BeforeMapChange.
Yeah, I have these set in the map config, but they don't change when the map switches. I'm still new to source servers, so how would I create this "plugin" with that flag?
Diddley4209 is offline