From 35811e33f840b3d64305bf63ebbb2610a52c26af Mon Sep 17 00:00:00 2001 From: ChocoTaco1 Date: Sun, 8 May 2022 02:34:54 -0400 Subject: [PATCH] Wrong spot --- Classic/scripts/autoexec/VoteMenu.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Classic/scripts/autoexec/VoteMenu.cs b/Classic/scripts/autoexec/VoteMenu.cs index bf151f2..611332a 100644 --- a/Classic/scripts/autoexec/VoteMenu.cs +++ b/Classic/scripts/autoexec/VoteMenu.cs @@ -259,12 +259,6 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, % switch$(%typeName) { case "VoteKickPlayer": - if($Host::TournamentMode && !$Host::AllowPlayerTournamentModeVotekick) // Dont allow Votekicks in Tournament Mode - { - messageClient(%client, "", "\c2No votekicks in Tournament Mode."); - return; - } - if(%client == %arg1) // client is trying to votekick himself return; // Use the leave button instead, pal. @@ -278,6 +272,12 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, % } else // Player is voting to kick { + if($Host::TournamentMode && !$Host::AllowPlayerTournamentModeVotekick) // Dont allow Votekicks in Tournament Mode + { + messageClient(%client, "", "\c2No votekicks in Tournament Mode."); + return; + } + if(%arg1.isAdmin) // target is an admin { messageClient(%client, "MsgClient", "\c2You cannot vote to kick "@%arg1.nameBase@", "@(%arg1.sex $= "Male" ? "he" : "she")@" is an admin!");