#include <amxmodx>
#include <cstrike>
#define PLUGIN "Frags CT of TE"
#define VERSION "1.0"
#define AUTHOR "Genius"
new ctfrags = 0
new tfrags = 0
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg", "halal", "a");
register_logevent("round_first", 2, "0=World triggered", "1&Restart_Round_")
register_logevent("round_first", 2, "0=World triggered", "1=Game_Commencing")
set_task(5.0, "hud")
}
public round_first()
ctfrags = 0, tfrags = 0
public halal()
{
static killer
killer = read_data(1);
if(get_user_team(killer) == 2)
ctfrags++
if(get_user_team(killer) == 1)
tfrags++
return PLUGIN_CONTINUE
}
public hud()
{
new p_playernum;
new id, count;
new datum[64];
new timestring[31];
new g_round = 1;
p_playernum = get_playersnum();
for(id = 1 ; id <= get_maxplayers() ; id++)
if(is_user_connected(id))
if(get_user_flags(id) & ADMIN_KICK)
count++
get_time("%Y.%m.%d", datum, 63)
get_time("%H:%M:%S",timestring,8)
set_hudmessage(random(255),random(255), random(255), 0.0, 0.2, 0, 0.6, 5.0)
show_hudmessage(0,"^nÜdvözölek a Szerveren^n%s^n%s^nKor: %d^nFrags[Ct]: %d^nFrags[TE]: %d^nJátékosok%d/16^nAdminok:%d",datum,timestring,ctfrags, tfrags, p_playernum,count,g_round)
set_task(5.0, "hud")
}