#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <dhudmessage>
#define PLUGIN "HUD Info"
#define VERSION "1.0"
#define AUTHOR "N/A"
#define MAXROUNDS 40
new Rounds
new iCTKills
new iTTKills
new admin
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event( "DeathMsg", "DeathEvent", "a" );
register_event("TextMsg","ResetAll","a","2&#Game_C","2&#Game_w")
register_logevent("NewRounds", 2, "0=World triggered", "1=Round_Start")
set_task(1.0,"HUDInfo" , _ , _ , _ , "b")
}
public ResetAll() {
Rounds = 0
iCTKills = 0
iTTKills = 0
}
public DeathEvent(){
new Killer = read_data( 1 );
new CsTeams:Team
Team = cs_get_user_team( Killer );
if (Team == CS_TEAM_T)
{
iTTKills++
}
if (Team == CS_TEAM_CT)
{
iCTKills++
}
}
public NewRounds(){
Rounds++
}
public HUDInfo(){
{
if(is_user_alive(id))
{
return PLUGIN_HANDLED;
}
admin = 0;
new players[32], pnum, tempid
get_players(players, pnum, "c")
for( new i; i<pnum; i++ )
{
tempid = players[i]
if(get_user_flags(tempid) & ADMIN_KICK)
{
admin++;
}
new ido[64], datum[64]
get_time("%H:%M:%S", ido, 63)
get_time("%Y.%m.%d", datum, 63)
new fentlevo = get_playersnum();
new maxplay = get_maxplayers();
set_dhudmessage(random(255),random(255),random(255), 0.0, 0.19, 0, 6.0, 12.0)
show_dhudmessage(0, "Adminok: %dTe Fragok: %d^nCt Fragok: %d^nJatekosok: %d/%d^nIdo: %s^nDatum: %s", admin, iTTKills, iCTKills, fentlevo, maxplay, ido, datum)
}
}
}