From a01e7bbfcbe85317534e31e4467281fd9dec9e6a Mon Sep 17 00:00:00 2001 From: jenz Date: Sat, 3 Jun 2023 21:21:13 +0200 Subject: [PATCH] changed cheat flag to kick flag so admins can overule map restrictions, for example for nominate_addmap --- mapchooser_extended/scripting/nominations_extended.sp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mapchooser_extended/scripting/nominations_extended.sp b/mapchooser_extended/scripting/nominations_extended.sp index cfdb5b4c..8aec3154 100755 --- a/mapchooser_extended/scripting/nominations_extended.sp +++ b/mapchooser_extended/scripting/nominations_extended.sp @@ -391,7 +391,7 @@ public Action Command_Addmap(int client, int args) return Plugin_Handled; } - if(!CheckCommandAccess(client, "sm_nominate_ignore", ADMFLAG_CHEATS, true)) + if(!CheckCommandAccess(client, "sm_nominate_ignore", ADMFLAG_KICK, true)) { bool RestrictionsActive = AreRestrictionsActive(); @@ -1379,7 +1379,7 @@ public int Handler_AdminMapSelectMenu(Menu menu, MenuAction action, int param1, static char map[PLATFORM_MAX_PATH]; GetMenuItem(menu, param2, map, sizeof(map)); - if(!CheckCommandAccess(param1, "sm_nominate_ignore", ADMFLAG_CHEATS, true)) + if(!CheckCommandAccess(param1, "sm_nominate_ignore", ADMFLAG_KICK, true)) { if(AreRestrictionsActive() && ( GetMapCooldownTime(map) > GetTime() || @@ -1412,7 +1412,7 @@ public int Handler_AdminMapSelectMenu(Menu menu, MenuAction action, int param1, case MenuAction_DrawItem: { - if(!CheckCommandAccess(param1, "sm_nominate_ignore", ADMFLAG_CHEATS, true)) + if(!CheckCommandAccess(param1, "sm_nominate_ignore", ADMFLAG_KICK, true)) { return Handler_MapSelectMenu(menu, action, param1, param2); }