Raised This Month: $51 Target: $400
 12% 

FB-Mapchanger (force mapchange for round based games)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Natural Selection        Category:   Server Management        Approver:   Hawk552 (427)
Unsichtbar
Member
Join Date: Oct 2007
Old 08-06-2009 , 05:37   FB-Mapchanger (force mapchange for round based games)
Reply With Quote #1

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 CVAR
fb_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
Attached Files
File Type: sma Get Plugin or Get Source (changemap.sma - 1432 views - 1.6 KB)
__________________


Last edited by Unsichtbar; 08-11-2009 at 10:17. Reason: Update 1.4
Unsichtbar 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 21:17.


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