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

Custom Votes Redux (v1.7 - 4/13/14)


Post New Thread Reply   
 
Thread Tools Display Modes
robotortoise
Senior Member
Join Date: Nov 2013
Old 02-20-2014 , 17:46   Re: Custom Votes Redux (v1.1 - 2/16/14)
Reply With Quote #31

Quote:
Originally Posted by ReFlexPoison View Post
You could simply set the command for the vote in the configuration to start a vote with the sm_vote command.

Like I said this plugin is meant to support almost anything.
So like this?

" "Make everyone props!"
{
"type" "list"
"command" "sm_vote; sm_propplayer {OPTION_RESULT}"
"bots" "1"
"immunity" "0"
"minimum" "5"
"ratio" "0.8"
"call_notify" "{olive}{VOTER_NAME}{default} wants to make half the server pissed off by turning everyone into props. {olive}{default} [{VOTE_AMOUNT}/{VOTE_REQUIRED}]"
"pass_notify" "{olive}Vote passed. Everyone is a prop! HIDE YO KIDS! HIDE YO WIFE!{default}."
"chattrigger" "voteprops"
"delay" "95"
}"
robotortoise is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 02-20-2014 , 18:48   Re: Custom Votes Redux (v1.1 - 2/16/14)
Reply With Quote #32

Quote:
Originally Posted by robotortoise View Post
So like this?

" "Make everyone props!"
{
"type" "list"
"command" "sm_vote; sm_propplayer {OPTION_RESULT}"
"bots" "1"
"immunity" "0"
"minimum" "5"
"ratio" "0.8"
"call_notify" "{olive}{VOTER_NAME}{default} wants to make half the server pissed off by turning everyone into props. {olive}{default} [{VOTE_AMOUNT}/{VOTE_REQUIRED}]"
"pass_notify" "{olive}Vote passed. Everyone is a prop! HIDE YO KIDS! HIDE YO WIFE!{default}."
"chattrigger" "voteprops"
"delay" "95"
}"
I didn't take into consideration that there isn't a way to get the result of sm_vote. The vote will be called but nothing will happen when the vote ends. A seperate plugin could be created for that to function like that but at the moment I'd suggest just using the plugin the way it is right now.

On other note...

Yay updates!

Version 1.2 - 2/20/14
  • Fixed improper votes being reset upon client connect and disconnects
  • Fixed array index out of bounds errors
  • Fixed bug where votes would have the required votes to pass but don't trigger
  • Fixed exploit where opening a vote with chat triggers would ignore delay and override configuration protocols
  • Fixed chat triggers not being executed when a ! or / is found
  • Changed max maps to 128
  • Changed max votes to 32
  • Added excluding bots from players type votes
  • Added restricting players type votes to team member selections

Last edited by ReFlexPoison; 02-20-2014 at 18:55.
ReFlexPoison is offline
robotortoise
Senior Member
Join Date: Nov 2013
Old 02-20-2014 , 19:39   Re: Custom Votes Redux (v1.1 - 2/16/14)
Reply With Quote #33

Quote:
Originally Posted by ReFlexPoison View Post
I didn't take into consideration that there isn't a way to get the result of sm_vote. The vote will be called but nothing will happen when the vote ends. A separate plugin could be created for that to function like that but at the moment I'd suggest just using the plugin the way it is right now.[/LIST]
Aww.

The only reason I'd suggest adding it is because the original players' votes had it and my server doesn't function very well without it.
robotortoise is offline
sipster19
Senior Member
Join Date: Mar 2011
Old 02-22-2014 , 22:40   Re: Custom Votes Redux (v1.2 - 2/20/14)
Reply With Quote #34

I would like to see this added:

confirm - Displays a simple "Yes" or "No" vote. If "Yes" wins, the command will be executed (although no result parameter is returned); if "No" wins, nothing is executed.
sipster19 is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 02-22-2014 , 23:38   Re: Custom Votes Redux (v1.2 - 2/20/14)
Reply With Quote #35

Quote:
Originally Posted by sipster19 View Post
I would like to see this added:

confirm - Displays a simple "Yes" or "No" vote. If "Yes" wins, the command will be executed (although no result parameter is returned); if "No" wins, nothing is executed.
Why not just use the options vote and set "no" to do nothing...?
ReFlexPoison is offline
zanyda12
Member
Join Date: Sep 2012
Old 02-23-2014 , 00:59   Re: Custom Votes Redux (v1.2 - 2/20/14)
Reply With Quote #36

HL2DM Error
[SM] Unable to load plugin "playersvotes-redux.smx": Native "CustomVotes_OpenVote" was not found
zanyda12 is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 02-23-2014 , 01:45   Re: Custom Votes Redux (v1.2 - 2/20/14)
Reply With Quote #37

Quote:
Originally Posted by zanyda12 View Post
HL2DM Error
[SM] Unable to load plugin "playersvotes-redux.smx": Native "CustomVotes_OpenVote" was not found
Stop using playersvotes and change to this.
ReFlexPoison is offline
robotortoise
Senior Member
Join Date: Nov 2013
Old 02-23-2014 , 21:12   Re: Custom Votes Redux (v1.2 - 2/20/14)
Reply With Quote #38

Quote:
Originally Posted by ReFlexPoison View Post
Why not just use the options vote and set "no" to do nothing...?
Because then you have to choose "yes" or "no" when initiating the vote, which looks absurd to the end user.
robotortoise is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 02-25-2014 , 10:36   Re: Custom Votes Redux (v1.2 - 2/20/14)
Reply With Quote #39

Quote:
Originally Posted by robotortoise View Post
Because then you have to choose "yes" or "no" when initiating the vote, which looks absurd to the end user.
Quote:
Originally Posted by sipster19 View Post
confirm - Displays a simple "Yes" or "No" vote. If "Yes" wins, the command will be executed (although no result parameter is returned); if "No" wins, nothing is executed.
ReFlexPoison is offline
Creampuffyness
Senior Member
Join Date: Jun 2009
Old 02-25-2014 , 18:26   Re: Custom Votes Redux (v1.2 - 2/20/14)
Reply With Quote #40

Reflex I have a question. How to I set votes to be allowed to called by a single vote?

For example, if I want anyone to be able to cast a vote to kick a player, I currently have:
{
"Kick player"
{
"type" "players"
"command" "sm_kick {TARGET_ID}"
"team" "1"
"bots" "1"
"immunity" "99"
"multiple" "1"
"minimum" "4"
"ratio" "0.6"
"call_notify" "{olive}{VOTER_NAME}{default} voted to kick {olive}{TARGET_NAME}{default} [{green}{VOTE_AMOUNT}{default}/{green}{VOTE_REQUIRED}{default}]"
"pass_notify" "{olive}Vote to kick passed. Kicked {olive}{TARGET_NAME}{default}."
"chattrigger" "votekick"
}

Looking at the options, there only seems to be "minimum" and "ratio". Minimum is the number of players needed to make a current vote succeed, and ratio is how many voted "yes" to pass. But do I set this so anyone can call a vote?

I saw this:
// Place these in command, call_notify, pass_notify to your liking
// {VOTE_AMOUNT} - Amount of votes called for that item
// {VOTE_REQUIRED} - Required vote calls for that vote to pass

But how can I set them?
Creampuffyness 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 06:20.


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