#include <sourcemod>
#include <cstrike>
#include <morecolors>
public Plugin:myinfo =
{
name = "RoundEnd",
author = "Impulse",
description = "",
version = "",
url = ""
}
public OnPluginStart()
{
CreateTimer(1.0, go, _, TIMER_REPEAT);
}
public Action:go(Handle:timer, any:value)
{
new time;
GetMapTimeLeft(time);
if (time == -1)
return;
decl String:nextmap[40];
GetConVarString(FindConVar("sm_nextmap"), nextmap, 40);
if (time == 5)
CPrintToChatAll("{lightgreen}< Change Map > {green}Через {red}5 {green}Секунд Карта Сменится На {blue}%s", nextmap);
if (time > 0 && time <= 4 && time != 0)
CPrintToChatAll("{lightgreen}< Change Map > {green}Смена Карты Через {red}%i {green}Секунд", time);
if (time == 0)
{
CPrintToChatAll("{lightgreen}< Change Map > {green}Меняем...\n{lightgreen}< Change Map > {green}Понеслаь!;)");
CS_TerminateRound(Float:0.1, CSRoundEndReason:9, false);
}
}