Raised This Month: $14 Target: $400

minimal number/percentage of votes for mapchooser

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Junior Member
Join Date: Jun 2009
Old 07-06-2009 , 15:57   minimal number/percentage of votes for mapchooser
Reply With Quote #1

could someone write a rather simple code for mapchooser?
the code should have one/two if possible additional cvars : sm mapchooser minvotes and sm mapchooser minratio. as much as i understand the additional coding should check if the number/percentage of votes meets with the additional cvars and if not, it should do something like this
ReplyToCommand(client, "[SM] %t", "Not enough votes for mapchange");
return Plugin_Handled;
dunno if its the right thing it should do. i want the plugin to discard the results of the vote and mapchooser NOT to set the next map (the next map would be set by randomcycle) when there arent enough votes.

can anyone help me out with this thing?
alpetras 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 02:00.

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