Raised This Month: $95 Target: $400

TS Map Voting Fix

Post New Thread Reply   
Thread Tools Display Modes
Plugin Info:     Modification:   The Specialists        Category:   General Purpose        Approver:   Geesu (62)
Join Date: Dec 2004
Old 12-07-2005 , 08:04   TS Map Voting Fix
Reply With Quote #1

TS comes with built-in map voting, but adding AMXX to the server will break this.
-Voting is still possible, but any successful vote will simply go to the next map in the cycle (ie amx_nextmap),
rather than the victorious map.
-This plugin intercepts players' votes and keeps a tally, allowing successful votes to change to the correct map.

This plugin was designed for TS, but there is no reason it will not work on any other mod.

-requires no extra modules, AMXX base only.

-voting is done my players typing "vote map <mapname>" or "votemap <mapname>" into chat.

amx_mapvoting <1|0> When one, ts-style map voting is allowed, when 0, map voting is blocked (1 by default)

I wasn't able to test it as extensively as I would have liked, but I will endeavour to do so ASAP. So, please report any bugs which crop up.
Attached Files
File Type: sma Get Plugin or Get Source (mapvoting.sma - 2184 views - 3.6 KB)
Maddo is offline
New Member
Join Date: May 2005
Old 12-17-2005 , 16:12  
Reply With Quote #2

what's the voting ratio needed so that the map will change?
cH33$3 is offline
Join Date: Dec 2004
Old 12-17-2005 , 21:59  
Reply With Quote #3

50% + 1 vote

If you like, I could add a setting to change it.
Maddo is offline
AMX Mod X Plugin Approver
Join Date: Mar 2004
Location: Cincinnati, OH
Old 12-19-2005 , 10:23  
Reply With Quote #4

Apprioving, but please fix indentations....
if          {          code()          }

should be

if {          code() }
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
Join Date: Dec 2004
Old 12-19-2005 , 21:33  
Reply With Quote #5

That's just my coding style. I find it is more readable when the braces are aligned with the indentation.
Maddo is offline
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 01-27-2006 , 08:58  
Reply With Quote #6

Nice plugin!

Workz great on my server ;)
Deviance is offline
Junior Member
Join Date: Jan 2006
Old 10-11-2006 , 12:35   Re: TS Map Voting Fix
Reply With Quote #7

Can you create a menu like Clanmod when a player say /votemap , like admin map menu ?
Dzs3ko is offline
Send a message via MSN to Dzs3ko
Join Date: Dec 2004
Old 10-12-2006 , 06:42   Re: TS Map Voting Fix
Reply With Quote #8

Sorry, but that's not really the purpose of this plugin. All this does is fix a feature of TS that doesn't work with AMXX. I'm sure there are other map voting plugins around that do what you're looking for.
Maddo is offline

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 14:24.

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