From 566916ff1bbf16e331ea865c289ea16b0d69c06e Mon Sep 17 00:00:00 2001 From: jenz Date: Sun, 22 Sep 2024 19:25:11 +0200 Subject: [PATCH] now admins cant fuck over the vote anymore by panic extending the last second possible --- .../scripting/mapchooser_extended_avg_mapend.sp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mapchooser_extended/scripting/mapchooser_extended_avg_mapend.sp b/mapchooser_extended/scripting/mapchooser_extended_avg_mapend.sp index 0db81270..bb601c42 100755 --- a/mapchooser_extended/scripting/mapchooser_extended_avg_mapend.sp +++ b/mapchooser_extended/scripting/mapchooser_extended_avg_mapend.sp @@ -983,6 +983,11 @@ public Action CS_OnTerminateRound(float &delay, CSRoundEndReason &reason) int total_time = (GetConVarInt(g_Cvar_VoteDuration) * 2) + GetConVarInt(g_Cvar_RunOffWarningTime) + 10; if (!g_IniatedLastVote) { + if (IsVoteInProgress()) //fucking admins being brain dead doing extend votes right when the map ends. + { + PrintToChatAll("The admin slept on the job again. Should had made that extend vote 2-3 minutes before the timeleft ran out instead of panic extend voting the last second possible."); + CancelVote(); + } g_IniatedLastVote = true; CreateTimer(float(total_time + 10), Timer_fall_back_map_switch, INVALID_HANDLE, TIMER_FLAG_NO_MAPCHANGE); //sometimes it will simply happen that theres a mapvote where nobody votes anything.