From 21da7700e560ba6682ad21cd3dd643fd6bd6acdc Mon Sep 17 00:00:00 2001 From: ChocoTaco1 Date: Fri, 18 Sep 2020 13:38:58 -0400 Subject: [PATCH] Update VoteMenu.cs --- Classic/scripts/autoexec/VoteMenu.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Classic/scripts/autoexec/VoteMenu.cs b/Classic/scripts/autoexec/VoteMenu.cs index 973a0f2..32dff60 100644 --- a/Classic/scripts/autoexec/VoteMenu.cs +++ b/Classic/scripts/autoexec/VoteMenu.cs @@ -569,15 +569,7 @@ function playerStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %tea } } else - { - if(%typeName $= "VoteChangeTimeLimit") - { - if(%arg1 $= "999") - %time = "Unlimited"; - else - %time = %arg1; - } - + { %count = ClientGroup.getCount(); for(%i = 0; %i < %count; %i++) { @@ -592,6 +584,7 @@ function playerStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %tea case "VoteSkipMission": messageClient( %cl, 'VoteStarted', "\c2" @ %msg, %client.name, "skip the mission"); case "VoteChangeTimeLimit": + if(%arg1 $= "999") %time = "Unlimited"; else %time = %arg1; messageClient( %cl, 'VoteStarted', "\c2" @ %msg, %client.name, "change the time limit to", %time); case "VoteKickPlayer": messageClient( %cl, 'VoteStarted', "\c2" @ %msg, %client.name, "kick player", %arg1.name);