Raised This Month: $7 Target: $400
 1% 

Master Vote v1.1 UPDATED 04-12-10


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   v3x (159)
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 10-17-2005 , 22:14   Master Vote v1.1 UPDATED 04-12-10
Reply With Quote #1

Well this was requested like last week or so. What it does is make a vote/poll(like phpBB) that lasts for more than a few seconds. So you can ask real important questions and you have a larger audience.
Quote:
/********************************************
AMX Master Vote
--------------------------------------------------------
Functionality:
Uses a vote that will last for however long you want. Could last two minutes could last 5 months.
The players in the server see in chat. Say /showvote to vote on the Master Vote.
This is only shown in chat if thay player hasnt voted for this vote yet.
Once a player has voted they can no longer see or vote for the vote.

--------------------------------------------------------
Commands:
amx_newvote (Must use either amx_rcon, rcon , or Server console for this command)
-Use server command amx_newvote and it will walk you thru the proccess of making a new vote.
*Note: It is advised to not use amx_rcon amx_newvote because you will not see the instructions.
*However I have the proccess written out below so you know what to do.


amx_mv_results [Optional] <Ending Date>
-If argument supplied it finds the vote that matches it and shows results.
-Nothing supplied shows results of current/most recent vote. If no vote is currently in progress it shows most recent.
If a vote is currently in progress it shows results of that vote.

---------------------------------------------------------
Cvars:
amx_mv_showtime (Time in minutes to show vote after connect)
-Special settings:
( -1 ) = Don't auto show vote. (Basically same as version 1.0)
( 0 ) = Show on first ResetHUD after connecting
---------------------------------------------------------
New Vote Walk-thru:
1) Use 'amx_newvote' with no argments to initiate new vote.
2) Use 'amx_newvote' followed by the ending date of the vote.
(Must be in MM-DD-YY)
-Example of this step: amx_newvote 10-20-05
-Note: If your date is incorrect or outdated then it asks you to do it again but you may not see this. So be sure your date is correct.
3) Use 'amx_newvote' followed by the question. (Quotes are not needed for spacing)
-Example of this step: amx_newvote What's your favorite Half-life game?
-Note: The '?' isnt needed. When showing the vote if there is not '?' in your question it adds it to the end.
4) Use 'amx_newvote' followed by the answers to your question. (Answers must be in " (Quotes) regardless of spacing)
-Example for this step: amx_newvote "Half-life" "Counter-Strike" "DOD" "DeathMatch" "TFC" "NS" "Half-life 2" "CS:S" "DOD:S"
-Note: Max of 9 answers for question.
5) Use 'amx_newvote 1' as a confirmation that everything was correct.

-So the vote created here would be:
This is {Plugin Name}! You only get one vote.
Voting end: 10-20-05

What's your favorite Half-life game?

1) Half-life
2) Counter-Strike
3) DOD
4) DeathMatch
5) TFC
6) NS
7) Half-life 2
8) CS:S
9) DOD:S

0) Exit
---------------------------------------------------------
Side Notes:
-You shouldn't ever manually edit the files created by this plugin.
-|- The .log files show the people's AuthId and Name with their answer and is used to allow people to only vote once.
-|- They also contain the data needed when using amx_mv_results. So dont get rid of the comments at the top.
-|- The .mv file contains all the data for the current vote and should never be edited by hand.

---------------------------------------------------------
Required:
- Files - None.
- Directory - None.
---------------------------------------------------------
Suggested Files:
- amxmodx/configs/mv_results.htm You can edit this htm file as you please.
- The different things you can use in it are as follows:
+ {PLUGIN} - Gets replaced with Plugin Name
+ {VERSION} - Gets replaced with plugin version.
+ {CREATOR} - Gets replaced by me(the creator)
+ {END_DATE} - The vote's ending date
+ {QUESTION} - The vote's question.
+ {RESULTS} - This is the main part. The results are dumped out where this is locted. It's best done like

{RESULTS}</p>.

---------------------------------------------------------
Other Files:
- amxmodx/data/Mvote/vote.mv File that holds all the current vote data.
- amxmodx/data/Mvote/MM-DD-YY.log File that keeps track of the vote that ends on date MM-DD-YY.
---------------------------------------------------------
Changelog:
v1.0: 10-10-05 | 10-16-05
-Initial build.

v1.1: 10-24-05
-Removed required directory.
-Added cvar amx_mv_showtime.
extension 04-12-10
-Made sure the plugin can compile.

---------------------------------------------------------
Credits:
atomic - His initial idea

********************************************/
PLEASE READ ALL INFO BEFORE POSTING A REPLY

If there are anybugs please let me know.
Any suggestions do the same.
Attached Files
File Type: sma Get Plugin or Get Source (master_vote.sma - 1358 views - 20.4 KB)
File Type: zip master_vote.zip (30.5 KB, 412 views)

Last edited by Xanimos; 04-12-2010 at 03:03. Reason: Fixking double stock implementation of 'split'
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
kILL-jOY
Member
Join Date: Jul 2005
Old 10-17-2005 , 22:38  
Reply With Quote #2

would be awsome for voting new and taking out heroes on my server

nj
__________________
**|$uperHero|** Free level 8 / 75+ Heroes / BuyXP at 68.191.146.3:27015 - CS 1.6


kILL-jOY is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 10-17-2005 , 22:50  
Reply With Quote #3

Quote:
Originally Posted by kILL-jOY
would be awsome for voting new and taking out heroes on my server

nj
Thats the point of it. My first test votes were "What mod(s) should be run on this server?" then listed a few mods.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-17-2005 , 22:58  
Reply With Quote #4

This solves alot of problems

Thnx suicid3 !
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
uTg | bigpapajiggs
Senior Member
Join Date: Sep 2005
Location: Bellingham, WA
Old 10-18-2005 , 00:41  
Reply With Quote #5

Hey good job. Next time I have the chance I am going to add this to my server.
__________________
What's my confidence level? I do crossword puzzles with a pen.
uTg | bigpapajiggs is offline
Send a message via AIM to uTg | bigpapajiggs Send a message via MSN to uTg | bigpapajiggs Send a message via Yahoo to uTg | bigpapajiggs
atomic
Veteran Member
Join Date: Jan 2005
Location: What The Foot?
Old 10-18-2005 , 10:28  
Reply With Quote #6

finally posted

i got a little tired of waiting
__________________
atomic is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 10-18-2005 , 13:03  
Reply With Quote #7

Yea I figured you might have. I started on the 10th as it said but it took me longer than first thought. But it works like its supposed to.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
atomic
Veteran Member
Join Date: Jan 2005
Location: What The Foot?
Old 10-18-2005 , 14:36  
Reply With Quote #8

Next update: players can change their votes by typing /changevote(only 1 use)
__________________
atomic is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 10-18-2005 , 14:37  
Reply With Quote #9

Quote:
Originally Posted by atomic
Next update: players can change their votes by typing /changevote(only 1 use)
Do-able
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
kILL-jOY
Member
Join Date: Jul 2005
Old 10-18-2005 , 18:55  
Reply With Quote #10

i cant compile this

is it because im running amxx 1.01
__________________
**|$uperHero|** Free level 8 / 75+ Heroes / BuyXP at 68.191.146.3:27015 - CS 1.6


kILL-jOY 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 06:58.


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