From 7c1095e4e7dfacf4ec10859487fdfb7dda67cf5a Mon Sep 17 00:00:00 2001 From: Gaben <102860272+GabenManPowered@users.noreply.github.com> Date: Tue, 12 Apr 2022 12:19:54 +0200 Subject: [PATCH] Allow h-flag admins to bypass vote delay (#1733) --- plugins/basevotes.sp | 7 ++++++- plugins/funvotes.sp | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/plugins/basevotes.sp b/plugins/basevotes.sp index c09f16d9..f19bd07a 100644 --- a/plugins/basevotes.sp +++ b/plugins/basevotes.sp @@ -406,8 +406,13 @@ void VoteSelect(Menu menu, int param1, int param2 = 0) bool TestVoteDelay(int client) { + if (CheckCommandAccess(client, "sm_vote_delay_bypass", ADMFLAG_CONVARS, true)) + { + return true; + } + int delay = CheckVoteDelay(); - + if (delay > 0) { if (delay > 60) diff --git a/plugins/funvotes.sp b/plugins/funvotes.sp index 7aaabc95..6edbe42a 100644 --- a/plugins/funvotes.sp +++ b/plugins/funvotes.sp @@ -308,8 +308,13 @@ void VoteSelect(Menu menu, int param1, int param2 = 0) bool TestVoteDelay(int client) { + if (CheckCommandAccess(client, "sm_vote_delay_bypass", ADMFLAG_CONVARS, true)) + { + return true; + } + int delay = CheckVoteDelay(); - + if (delay > 0) { if (delay > 60)