#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#define PLUGIN "Frags CT of TE"
#define VERSION "1.0"
#define AUTHOR "pixxa112"
new ctfrags = 0
new tfrags = 0
new g_round, pcv_sv_maxround
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")
register_event("HLTV", "event_new_round", "a", "1=0", "2=0")
hud()
pcv_sv_maxround = get_cvar_pointer("sv_maxround")
}
public event_new_round()
g_round++
public round_first()
ctfrags = 0, tfrags = 0, g_round = 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 id, count
new datum[64]
new timestring[31]
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.17, 0, 6.0, 1.0)
show_hudmessage(0,"^nJó Játékot!^n%s^n%s^nKör: %d/50^nFrags[CT]: %d^nFrags[TE]: %d^nJátékosok: %d/%d^nAdminok:%d^nConfing By:Keep Call Mee", datum, timestring, g_round, pcv_sv_maxround, ctfrags, tfrags, get_playersnum(), get_maxplayers(), count)
set_task(1.0, "hud")
}