changed cheat flag to kick flag so admins can overule map restrictions, for example for nominate_addmap

This commit is contained in:
jenz 2023-06-03 21:21:13 +02:00
parent 0c8a683d23
commit a01e7bbfcb

View File

@ -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);
}