mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-02-08 01:10:59 +00:00
Moved Outside Loop
This commit is contained in:
parent
58bb1cb4f9
commit
4d64f12be1
|
|
@ -549,6 +549,14 @@ function playerStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %tea
|
|||
}
|
||||
else
|
||||
{
|
||||
if(%typeName $= "VoteChangeTimeLimit")
|
||||
{
|
||||
if(%arg1 $= "999")
|
||||
%time = "Unlimited";
|
||||
else
|
||||
%time = %arg1;
|
||||
}
|
||||
|
||||
%count = ClientGroup.getCount();
|
||||
for(%i = 0; %i < %count; %i++)
|
||||
{
|
||||
|
|
@ -563,7 +571,6 @@ function playerStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %tea
|
|||
case "VoteSkipMission":
|
||||
messageClient( %cl, 'VoteStarted', "\c2" @ %msg, %client.name, "skip the mission");
|
||||
case "VoteChangeTimeLimit":
|
||||
if(%arg1 $= "999") %time = "Unlimited"; else %time = %arg1;
|
||||
messageClient( %cl, 'VoteStarted', "\c2" @ %msg, %client.name, "change the time limit to", %time);
|
||||
case "VoteKickPlayer":
|
||||
messageClient( %cl, 'VoteStarted', "\c2" @ %msg, %client.name, "kick player", %arg1.name);
|
||||
|
|
|
|||
Loading…
Reference in a new issue