Raised This Month: $ Target: $400
 0% 

Is there a way to make certain cvars be executed when a map ends?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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:39.


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