This commit is contained in:
ChocoTaco1 2025-11-02 20:45:05 -05:00
parent 3bd4577832
commit 14caa5aca5
3 changed files with 6 additions and 49 deletions

View file

@ -581,12 +581,12 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %
case "stopRunningVote":
if(%client.isSuperAdmin || (%client.isAdmin && $Host::AllowAdminStopVote))
{
%curTimeLeftMS = ($Host::TimeLimit * 60 * 1000) + $missionStartTime - getSimTime();
if(%curTimeLeftMS <= 0) //Dont allow a stop vote after time has expired, then no new time is set - VoteOverTime
{
messageClient(%client, "", "\c2Can't stop time vote after time has expired.");
return;
}
// %curTimeLeftMS = ($Host::TimeLimit * 60 * 1000) + $missionStartTime - getSimTime();
// if(%curTimeLeftMS <= 0) //Dont allow a stop vote after time has expired, then no new time is set - VoteOverTime
// {
// messageClient(%client, "", "\c2Can't stop vote after time has expired.");
// return;
// }
stopCurrentVote(%client);
adminLog(%client, " stopped the vote in progress.");