Quote:
Originally Posted by robotortoise
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