Hi Guys,
Im using Fastmancz's Panorama Timeleft plugin, i need to text the current map in hud, under the timeleft text. Can somebody do this small modification please?
Code:
#include <sourcemod>
public Plugin myinfo =
{
name = "Panorama - Timeleft",
author = "Fastmancz",
description = "Shows timeleft at the bottom of the screen",
version = "1.0.1"
};
public void OnPluginStart()
{
CreateTimer(1.0, Timeleft, _, TIMER_REPEAT);
}
public Action Timeleft(Handle timer)
{
char sTime[60];
int iTimeleft;
GetMapTimeLeft(iTimeleft);
if(iTimeleft > 0)
{
FormatTime(sTime, sizeof(sTime), "%M:%S", iTimeleft);
for(int i = 1; i <= MaxClients; i++)
{
if(IsClientInGame(i) && !IsFakeClient(i))
{
char message[60];
Format(message, sizeof(message), "Timeleft: %s", sTime);
SetHudTextParams(-1.0, 1.00, 1.0, 25, 186, 22, 255, 0, 0.00, 0.00, 0.00);
ShowHudText(i, -1, message);
}
}
}
return Plugin_Continue;
}
__________________