#include <amxmodx>
#include <amxmisc>
#include <cstrike>
 
#define PLUGIN "Rush hud info"
#define AUTHOR "expert"
#define VERSION "1.0"
 
new szamlalo
 
public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_logevent("start",2,"1=Round_Start")
	register_event("DeathMsg", "Death", "a")
	register_logevent("bomba", 3, "2=Planted_The_Bomb")
}
public start()
{
	set_task(0.1, "kiiras")
	szamlalo = 60
}
public kiiras()
{
	new players[32], pnum, tempid;
	get_players(players, pnum, "c");
	for(new i; i<pnum; i++)
	{
		tempid = players[i];
		if(is_user_alive(tempid) && cs_get_user_team(tempid) == CS_TEAM_CT)
		{
			if(szamlalo > 0)
			{
				set_hudmessage(0, 225, 225, -1.0, 0.30, 1, 0.0, 1.1, 0.0, 0.0, -1)
				show_hudmessage(tempid, "Rusholas mehet %d masodperc mulva!!", szamlalo)
				set_task(1.0, "kiiras")
			}
			else
			{
				set_dhudmessage(255, 255, 0, -1.0, 0.30, , 0.0, 1.1, 0.0, 0.0, -1)
				show_dhudmessage(tempid, "Ct-k rusholhatnak!")
				return PLUGIN_HANDLED
			}
		}
	}
	--szamlalo
	return PLUGIN_CONTINUE
}
public Death()
{
	new tplayers[32], tpnum
	get_players(tplayers, tpnum, "aceh", "TERRORIST")
 
	new ctplayers[32], ctpnum
	get_players(ctplayers, ctpnum, "aceh", "CT")
 
	if(tpnum == 1 || ctpnum == 1)
	{
		szamlalo = 0
	}
 
	return PLUGIN_CONTINUE
}
public bomba()
{
	szamlalo = 0
}