#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#define PLUGIN "Frags CT of TE"
#define VERSION "1.0"
#define AUTHOR "pixxa112"
new szinek[5][3] = {
{0,255,100},
{255, 170, 0},
{255,0,0},
{0,255,0},
{255,0,255}
}
new szinum
new ctfrag = 0
new tfrag = 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")
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(szinek[szinum][0], szinek[szinum][1], szinek[szinum][2], 0.01, 0.15, 0, 6.0, 6.0)
show_hudmessage(nPlayer_S, "Jó Játékot!^n%s^n%s^nAdminok: %d^nKör: %d/30^nJátékosok: %d/%d^nFRAGS [T]: %d^nFRAGS [CT]: %d^nConfig by:", datum, iTime, count, gSzamolas, jatekosok, get_maxplayers(), tfrag, ctfrag)
set_task(1.0, "hud")
}