HLMOD.HU Forrás Megtekintés
- www.hlmod.hu#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "Dupla frag idõre"
#define VERSION "1.0"
#define AUTHOR "HunGamer"
new bool:aktiv = false;
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_event("DeathMsg","hook_death","a");
set_task(60.0, "check", 0, _, _, "b");
}
public check()
{
new hour, minute, second;
time(hour, minute, second);
if(22 <= hour && 7 > hour)
aktiv=true
else
aktiv=false
return PLUGIN_HANDLED;
}
public hook_death()
{
if(!aktiv)
return PLUGIN_CONTINUE;
new killer = read_data(1);
set_user_frags(killer, get_user_frags(killer) + 1);
return PLUGIN_CONTINUE;
}