mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-19 16:14:44 +00:00
30 Minutes Only
Tournament Mode
This commit is contained in:
parent
e1771fbf88
commit
e4483ab58b
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue