mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-14 23:54:32 +00:00
30 Minutes Only
Tournament Mode
This commit is contained in:
parent
e1771fbf88
commit
e4483ab58b
1 changed files with 8 additions and 1 deletions
|
|
@ -419,12 +419,19 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %
|
||||||
return;
|
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.");
|
messageClient(%client, "", "\c2Cannot change the time limit in this gametype.");
|
||||||
return;
|
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
|
// 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))
|
if((%arg1 * 60 * 1000) < (getSimTime() - $missionStartTime))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue