Is there a way to make certain cvars be executed when a map ends?
On one of my maps I'd like nospread, but I don't want nospread in any other map, what would be the easiest way to do this?
|
Re: Is there a way to make certain cvars be executed when a map ends?
Quote:
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. |
Re: Is there a way to make certain cvars be executed when a map ends?
Quote:
|
Re: Is there a way to make certain cvars be executed when a map ends?
You can set them in configs/amxx.cfg if you want to reset them after the map. This will be executed for each map, but the map-specific files will be executed after this one, so the cvars there will apply only for those maps.
|
Re: Is there a way to make certain cvars be executed when a map ends?
Quote:
|
Re: Is there a way to make certain cvars be executed when a map ends?
How can you not have it? This is a default AMXX file. If you didn't download AMXX from the official website, please download it. If you did, simply create the file.
|
Re: Is there a way to make certain cvars be executed when a map ends?
Quote:
|
Re: Is there a way to make certain cvars be executed when a map ends?
Quote:
make up your mind of what you want |
Re: Is there a way to make certain cvars be executed when a map ends?
Quote:
|
Re: Is there a way to make certain cvars be executed when a map ends?
Quote:
|
All times are GMT -4. The time now is 21:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.