mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-04-25 21:45:22 +00:00
VoteCooldown
This commit is contained in:
parent
c3aa660dfd
commit
713d28a994
3 changed files with 10 additions and 1 deletions
|
|
@ -300,6 +300,12 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %
|
|||
}
|
||||
|
||||
case "VoteChangeTimeLimit":
|
||||
if($CMHasVoted[%client.guid] >= $Host::ClassicMaxVotes && !%isAdmin)
|
||||
{
|
||||
messageClient(%client, "", "\c2You have exhausted your voting rights for this mission.");
|
||||
return;
|
||||
}
|
||||
|
||||
if($CurrentMissionType $= "Siege") // Can't change time in this one
|
||||
{
|
||||
messageClient(%client, "", "\c2Cannot change the time limit in this gametype.");
|
||||
|
|
@ -328,6 +334,7 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %
|
|||
%msg = %client.nameBase @ " initiated a vote to change the time limit to " @ %time @ ".";
|
||||
// VoteOvertime
|
||||
StartVOTimeVote(%game);
|
||||
$CMHasVoted[%client.guid]++;
|
||||
}
|
||||
|
||||
case "VoteMatchStart":
|
||||
|
|
@ -615,7 +622,7 @@ function playerStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %tea
|
|||
clearBottomPrint(%client);
|
||||
|
||||
%client.canVote = false;
|
||||
%client.rescheduleVote = schedule(($Host::voteSpread * 1000) + ($Host::voteTime * 1000) , 0, "resetVotePrivs", %client);
|
||||
%client.rescheduleVote = schedule(($Host::VoteCooldown * 1000) + ($Host::VoteTime * 1000) , 0, "resetVotePrivs", %client);
|
||||
|
||||
// Log Vote
|
||||
voteLog(%client, %typeName, %arg1, %arg2, %arg3, %arg4);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue