#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <cstrike>
#include <csstats>
#define PLUGIN "infomacio"
#define VERSION "1.0"
#define AUTHOR "asd"
new ctfrags = 0
new tfrags = 0
new stats[8]
new bodyhits[8]
new irank
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(id) {
irank = get_user_stats(id,stats,bodyhits)
new mrank = get_statsnum()
set_hudmessage(0, 102, 204, 0.01, 0.15, 0, 0.6, 5.0)
show_hudmessage(id, "Slot %d/%d^n CT frag: %d^nT frag: %d ^nRankod: %d/%d", get_playersnum(), get_maxplayers(), ctfrags, tfrags, irank, mrank)
set_task(5.0, "hud")
}