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

TS Map Voting Fix


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   The Specialists        Category:   General Purpose        Approver:   Geesu (62)
Maddo
Member
Join Date: Dec 2004
Old 12-07-2005 , 07: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.

Usage:
-requires no extra modules, AMXX base only.

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

cvars:
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 - 2494 views - 3.6 KB)
Maddo is offline
cH33$3
New Member
Join Date: May 2005
Old 12-17-2005 , 15:12  
Reply With Quote #2

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

50% + 1 vote

If you like, I could add a setting to change it.
Maddo is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 12-19-2005 , 09:23  
Reply With Quote #4

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

should be

Code:
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
Maddo
Member
Join Date: Dec 2004
Old 12-19-2005 , 20: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
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 01-27-2006 , 07:58  
Reply With Quote #6

Nice plugin!

Workz great on my server ;)
Deviance is offline
Dzs3ko
Junior Member
Join Date: Jan 2006
Old 10-11-2006 , 11: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
Maddo
Member
Join Date: Dec 2004
Old 10-12-2006 , 05: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
Reply



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 01:10.


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