30 Minutes Only

Tournament Mode
This commit is contained in:
ChocoTaco1 2022-06-07 19:37:51 -04:00
parent e1771fbf88
commit e4483ab58b

View file

@ -419,12 +419,19 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %
return;
}
if($CurrentMissionType $= "Siege") // Can't change time in this one
if($CurrentMissionType $= "Siege") // Can't change time in this one
{
messageClient(%client, "", "\c2Cannot change the time limit in this gametype.");
return;
}
// 30 minutes Only in Tournament mode
if($Host::TournamentMode && %arg1 !$= "30")
{
messageClient(%client, "", "\c2Only 30 minute time limit allowed in tournament mode.");
return;
}
// Eolk - don't let votes/admins end the map immediately by switching the time limit below the elapsed time
if((%arg1 * 60 * 1000) < (getSimTime() - $missionStartTime))
{