Here is a small plugin i wrote this morning for our Natural Selection server to prevent never ending bot-only games on the same map over hours. This plugin is really simple but i was unable to find one that can do that trick.
Code:
/*
* Unsichtbar's
* FB-Mapchanger AmxModx Plugin
*
* This plugin forces a mapchange to "nextmap" if amx_timeleft
* runs out and no human players are on your server.
* Plugin was made and tested for Natural Selection but can be
* of use for any round based mods.
*
* Bots on a Natural Selection server fight over hours on the
* same map and the server will crash sooner then later.
* To prevent never ending bot games i wrote this little plugin.
*
* Fire-Bursts.com Gaming Network
*
*/
Options / Server CVARfb_humans (default 0)
Set amount of human players the server will ignor to change the map. Example: if fb_humans is set to 4 then the server will need at least 5 human players or a mapchange will be forced.
Changelog
Version 1.4- Better check for human players including connection and hltv
- Added fb_humans cvar to set human player amount the server will ignor for a mapchange.
Version 1.3- Added valid map check for nextmap
- Added log text if nextmap is invalid
- Moved get amx_nextmap from plugin_init to right before the changelevel server command