From e1069b6284eb03ea664428c788869916ec100033 Mon Sep 17 00:00:00 2001 From: ChocoTaco1 Date: Mon, 6 Jun 2022 17:38:48 -0400 Subject: [PATCH] SA Admin bug --- Classic/scripts/autoexec/VoteMenu.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Classic/scripts/autoexec/VoteMenu.cs b/Classic/scripts/autoexec/VoteMenu.cs index 9bd3446..eb3aff3 100644 --- a/Classic/scripts/autoexec/VoteMenu.cs +++ b/Classic/scripts/autoexec/VoteMenu.cs @@ -345,18 +345,18 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, % if(%arg1.isAdmin) // target is already an admin return; // can't vote to admin an admin! - if(%client.isAdmin && !%client.isSuperAdmin) // our pal is an admin (no superadmins) - { - if(!$Host::AllowAdmin2Admin) - return; - } - else // not an admin - { - if(!$host::allowadminplayervotes) // admin player votes are NOT enabled - return; // can't do that pal + if(%isAdmin) + { + if(!%client.isSuperAdmin && !$Host::AllowAdmin2Admin) + return; + } + else + { + if(!$host::allowadminplayervotes) // admin player votes are NOT enabled + return; // can't do that pal %msg = %client.nameBase @ " initiated a vote to admin player " @ %arg1.nameBase @ "."; - } + } case "BanPlayer": if(%client.isSuperAdmin && !%arg1.isSuperAdmin) // we're a super admin, and our target isn't a super admin