mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-02-08 17:30:59 +00:00
Minimum Participation for Voting
This commit is contained in:
parent
37b60b93ed
commit
6cbddebc42
|
|
@ -1415,7 +1415,11 @@ function calcVotes(%typeName, %arg1, %arg2, %arg3, %arg4)
|
|||
}
|
||||
}
|
||||
|
||||
Game.evalVote(%typeName, false, %arg1, %arg2, %arg3, %arg4);
|
||||
if((Game.totalVotesFor + Game.totalVotesAgainst) >= mFloor(ClientGroup.getCount()/2))
|
||||
Game.evalVote(%typeName, false, %arg1, %arg2, %arg3, %arg4);
|
||||
else
|
||||
messageAll('MsgVoteFailed', '\c2Vote minimum participation not reached. Total votes %1 out of %2 required.',(Game.totalVotesFor + Game.totalVotesAgainst),mFloor(ClientGroup.getCount()/2));
|
||||
|
||||
Game.scheduleVote = "";
|
||||
Game.scheduleVoteArgs = "";
|
||||
Game.kickClient = "";
|
||||
|
|
|
|||
Loading…
Reference in a new issue