From fe0a20ff44850f0af3bd7a631668e7a9ec8d11ac Mon Sep 17 00:00:00 2001 From: hubdom <26039831+hubdom@users.noreply.github.com> Date: Tue, 26 Jan 2021 13:03:10 +0100 Subject: [PATCH] MCE: on last round end display next map in chat --- mapchooser_extended/scripting/mapchooser_extended.sp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mapchooser_extended/scripting/mapchooser_extended.sp b/mapchooser_extended/scripting/mapchooser_extended.sp index a79fcdf2..e0b28a89 100644 --- a/mapchooser_extended/scripting/mapchooser_extended.sp +++ b/mapchooser_extended/scripting/mapchooser_extended.sp @@ -849,6 +849,18 @@ public void Event_WeaponRank(Handle event, const char[] name, bool dontBroadcast /* You ask, why don't you just use team_score event? And I answer... Because CSS doesn't. */ public void Event_RoundEnd(Handle event, const char[] name, bool dontBroadcast) { + int timeleft; + GetMapTimeLeft(timeleft); + + if(timeleft <= 0 || g_ChangeMapAtRoundEnd) + { + char map[32]; + GetNextMap(map, sizeof(map)); + PrintToChatAll("[MCE] Next Map: %s", map); + PrintToChatAll("[MCE] Next Map: %s", map); + PrintToChatAll("[MCE] Next Map: %s", map); + } + if(g_RoundCounting == RoundCounting_ArmsRace) return;