Start mapvote after server crash
Created for Natural Selection custom maps servers. Custom servers often crash and so the first map in the mapcycle will be played quite often.
This plugin starts a mapvote by calling a console command or function name of an existing and loaded plugin.
Configuration (edit in sma):
// Time (seconds) before a message about the server crash and the upcoming
// map vote will occur. The timer starts after loading the plugin.
#define TIME_CRASHINFO 30
// Time (seconds) before the map vote command will be executed. The timer
// starts after loading the plugin.
#define TIME_MAPVOTE 50
// Command type.
// 0 = console command (rcon command)
// 1 = plugin function name
#define CMD_TYPE 0
// Plugin name which contains the function to be executed. This will only be only
// used if command type is set to 1.
#define CMD_PLUGIN "Nextmap Chooser"
// Command or function name to be executed. Depends on command type (see above)
#define CMD_NAME "amx_startmapvote"
//#define CMD_NAME "voteNextmap"
Plugin tested with Crab's Map Manager. Should work with almost any mapvote plugin which has a console command or function exported to start the vote.
+ 17. Jan. 06 - v1.0
-- first release