Raised This Month: $100 Target: $400
 25% 

Start mapvote after server crash


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Natural Selection        Category:   Server Management        Approver:   EKS (167)
manuel
New Member
Join Date: Sep 2004
Old 01-17-2006 , 17:45   Start mapvote after server crash
Reply With Quote #1

Start mapvote after server crash

Attention:
Created for Natural Selection custom maps servers. Custom servers often crash and so the first map in the mapcycle will be played quite often.

Description:
This plugin starts a mapvote by calling a console command or function name of an existing and loaded plugin.

Configuration (edit in sma):
Quote:
// 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"
Testing:
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.

Changelog:
+ 17. Jan. 06 - v1.0
-- first release
Attached Files
File Type: sma Get Plugin or Get Source (votemapaftercrash.sma - 1923 views - 3.6 KB)
manuel is offline
Maverick
New Member
Join Date: Aug 2005
Old 01-30-2006 , 17:29  
Reply With Quote #2

Handy for custom servers
Thanks.
Maverick is offline
Reply


Thread Tools
Display Modes

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 15:13.


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