now admins cant fuck over the vote anymore by panic extending the last second possible
This commit is contained in:
parent
5fbae4b560
commit
566916ff1b
@ -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;
|
int total_time = (GetConVarInt(g_Cvar_VoteDuration) * 2) + GetConVarInt(g_Cvar_RunOffWarningTime) + 10;
|
||||||
if (!g_IniatedLastVote)
|
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;
|
g_IniatedLastVote = true;
|
||||||
CreateTimer(float(total_time + 10), Timer_fall_back_map_switch, INVALID_HANDLE, TIMER_FLAG_NO_MAPCHANGE);
|
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.
|
//sometimes it will simply happen that theres a mapvote where nobody votes anything.
|
||||||
|
Loading…
Reference in New Issue
Block a user