Skip to content

Commit

Permalink
fix: prevent admin map insertion into vote pool (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rushaway committed Apr 26, 2024
1 parent cbe5be4 commit dc45159
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions addons/sourcemod/scripting/mapchooser_extended.sp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
#tryinclude <zleader>
#define REQUIRE_PLUGIN

#define MCE_VERSION "1.11.1"
#define MCE_VERSION "1.11.2"

#define NV "nativevotes"
#define ZLEADER "zleader"
Expand Down Expand Up @@ -2013,6 +2013,9 @@ void CreateNextVote()
if(!InternalAreRestrictionsActive())
break;

if(InternalGetMapAdminRestriction(map))
continue;

if(InternalGetMapVIPRestriction(map))
continue;

Expand Down Expand Up @@ -3400,4 +3403,4 @@ stock void Forward_OnNominationDisconnect(char[] oldmap, int owner)
Call_PushString(oldmap);
Call_PushCell(owner);
Call_Finish();
}
}

0 comments on commit dc45159

Please sign in to comment.