Hi.
I have a problem with ham take damage. whatever i do its dont do the efects to the victim. Also no error log at compiling and at gameplay :S
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
#include <hamsandwich>
#include <zp50_class_human>
#include <cs_ham_bots_api>
#define TASK_REGENERATION 65845
#define ID_REGEN (taskid - TASK_REGENERATION)
public plugin_init()
{
register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
RegisterHam(Ham_TakeDamage, "player", "ham_take_damage")
}
public ham_take_damage(taskid, inflictor, attacker, Float:damage, damagebits)
{
remove_task(ID_REGEN+TASK_REGENERATION)
set_task(5.0, "RemoveBlockRegen", ID_REGEN+TASK_REGENERATION)
}
public RemoveBlockRegen(taskid)
{
set_task(0.2, "regeneration", ID_REGEN+TASK_REGENERATION, _, _, "b")
}
//rest of my code