MCE: on last round end display next map in chat

This commit is contained in:
hubdom 2021-01-26 13:03:10 +01:00
parent ffbf3910fa
commit fe0a20ff44

View File

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