HLMOD.HU Forrás Megtekintés
- www.hlmod.hu#include <amxmodx>
#include <cstrike>
#define PLUGIN "Frags CT of TE"
#define VERSION "1.0"
#define AUTHOR "pixxa112"
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()
{
set_hudmessage(random(255),random(255), random(255), 0.0, 0.6, 0, 0.6, 5.0)
show_hudmessage(0,"Frags of CT: %d^nFrags of TE: %d",ctfrags, tfrags)
set_task(5.0, "hud")
}