Raised This Month: $32 Target: $400
 8% 

Voting For Timelimit


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   v3x (159)
many
Member
Join Date: Jul 2007
Location: Russian, Moscow
Old 06-29-2008 , 13:42   Voting For Timelimit
Reply With Quote #1

Voting For Timelimit

.: Description :.
This Plugin start voting for timelimit in 3 minutes after the beginning of a map.
There are 5 options, and u can change it.
Add new vote count system:
Calculate the average number of minutes from the options which was voted.
For example:

5 players vote for 20 minutes
4 players vote for 60 minutes

5x20 + 4x60 = 340 minutes
4 + 5 = 9 votes(total)
Then 340 / 9 = 37,77 and rounds the result
Final result - 40 minutes
.: Cvars :.
Code:
amx_countsys 0|1 - old vote count system|new vote count system
amx_tl_1 - you can change 1 option in menu by this cvar
amx_tl_2 - you can change 2 option in menu by this cvar
amx_tl_3 - you can change 3 option in menu by this cvar
amx_tl_4 - you can change 4 option in menu by this cvar
amx_tl_5 - you can change 5 option in menu by this cvar
Default:
1. 20 minutes
2. 30 minutes
3. 40 minutes
4. 50 minutes
5. 60 minutes

Thnx Pr4er for help
Kryzu for the idea of new count system
Attached Files
File Type: sma Get Plugin or Get Source (timelimitvote.sma - 4896 views - 3.6 KB)

Last edited by many; 10-02-2009 at 20:14.
many is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 06-29-2008 , 14:20   Re: Voting For Timelimit
Reply With Quote #2

Good Idea

I test now.
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
many
Member
Join Date: Jul 2007
Location: Russian, Moscow
Old 06-29-2008 , 14:33   Re: Voting For Timelimit
Reply With Quote #3

I made it for my Jump server)
many is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-29-2008 , 14:58   Re: Voting For Timelimit
Reply With Quote #4

You spelled minutes wrong, lol
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
many
Member
Join Date: Jul 2007
Location: Russian, Moscow
Old 06-29-2008 , 15:20   Re: Voting For Timelimit
Reply With Quote #5

=)))) updated..
many is offline
EvolDay
Senior Member
Join Date: Apr 2008
Location: Canada
Old 06-30-2008 , 02:49   Re: Voting For Timelimit
Reply With Quote #6

i like this idea ill give this plugin a test run. and lol @ the minutes thing.
EvolDay is offline
Pepe.argento
Member
Join Date: Jul 2008
Old 07-07-2008 , 03:16   Re: Voting For Timelimit
Reply With Quote #7

Nice Job!
Is perfect to my KZ server !
Thx
Pepe.argento is offline
EvolDay
Senior Member
Join Date: Apr 2008
Location: Canada
Old 07-07-2008 , 20:27   Re: Voting For Timelimit
Reply With Quote #8

Code:
L 07/08/2008 - 15:23:30: Start of error session.
L 07/08/2008 - 15:23:30: Info (map "surf_simpsons_final") (file "addons/amxmodx/logs/error_20080708.log")
L 07/08/2008 - 15:23:30: Played 14 is not in game
L 07/08/2008 - 15:23:30: [AMXX] Displaying debug trace (plugin "timelimitvote.amxx")
L 07/08/2008 - 15:23:30: [AMXX] Run time error 10: native error (native "menu_cancel")
L 07/08/2008 - 15:23:30: [AMXX]    [0] timelimitvote.sma::menu_handler (line 48)
EvolDay is offline
NepazZ
New Member
Join Date: Jul 2008
Location: Lithuanian
Old 07-22-2008 , 07:16   Re: Voting For Timelimit
Reply With Quote #9

Cool Plugin..I will test it...
__________________
Lithuanian Boy (:
NepazZ is offline
Send a message via Yahoo to NepazZ Send a message via Skype™ to NepazZ
fosco
Junior Member
Join Date: Jul 2008
Old 07-29-2008 , 17:34   Re: Voting For Timelimit
Reply With Quote #10

ive been using this plugin for the past 2 days now with no problems.
fosco 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 20:14.


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