now admins cant fuck over the vote anymore by panic extending the last second possible

This commit is contained in:
jenz 2024-09-22 19:25:11 +02:00
parent 5fbae4b560
commit 566916ff1b

View File

@ -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.