#pragma semicolon 1
#include <cstrike>
#define CHANNEL 3
#define UPDATE_INTERVAL 1.0 // HUD info update period in seconds
#define POS_X -1.0 // position (from left to right)
#define POS_Y 0.01 // (from top to bottom)
public OnMapStart()
{
CreateTimer(UPDATE_INTERVAL, Timer_PrintHud, _, TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE);
}
public Action:Timer_PrintHud(Handle:hTimer)
{
static i, String:buffer[PLATFORM_MAX_PATH];
Format(buffer, sizeof(buffer), "[Террористы vs Спецназ ]\n[ %02i ][ %02i ]", CS_GetTeamScore(CS_TEAM_T), CS_GetTeamScore(CS_TEAM_CT));
for(i = 1; i <= MaxClients; i++) if(IsClientInGame(i) && !IsFakeClient(i))
{
SetHudTextParams(POS_X, POS_Y, UPDATE_INTERVAL + 0.1, 191, 191, 191, 255, 0, 0.0, 0.1, 0.1);
ShowHudText(i, CHANNEL, buffer);
}
}