HLMOD.HU Forrás Megtekintés
- www.hlmod.hu#include <amxmodx>
#define PLUGIN "CsapatFragek"
#define VERSION "1.0"
#define AUTHOR "BaSzOgASD"
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(0, 255, 0, 0.01, 0.15, 0, 0.6, 5.0)
show_hudmessage(0,"CT Fragek:%d^nT Fragek: %d",ctfrags, tfrags)
set_task(5.0, "hud")
}