Update VoteMenu.cs

Cant vote a time lower than the Host::TimeLimit
This commit is contained in:
ChocoTaco1 2020-07-24 01:36:58 -04:00
parent 8a0e3d6a65
commit c3aa660dfd

View file

@ -319,6 +319,9 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %
return; return;
} }
if(%arg1 < $Host::TimeLimit)
return;
if((!%isAdmin && $Host::AllowPlayerVoteTimeLimit) || (%isAdmin && %client.ForceVote)) if((!%isAdmin && $Host::AllowPlayerVoteTimeLimit) || (%isAdmin && %client.ForceVote))
{ {
if(%arg1 $= "999") %time = "unlimited"; else %time = %arg1; if(%arg1 $= "999") %time = "unlimited"; else %time = %arg1;