with this the regeneration works perfect, but hame_take_damage stil not. and no error log :S
PHP Code:
public ham_take_damage(victim, inflictor, attacker, Float:damage, damagebits)
{
if(is_user_connected(victim) && is_user_alive(victim) && !zp_core_is_zombie(victim)) // called when a player got hit
{
remove_task(victim+TASK_REGENERATION) //remove current regeneration??
remove_task(victim+TASK_BLOCK) //remove current delay counter??
set_task(5.0, "RemoveBlockRegen", victim+TASK_BLOCK) //then activate it
}
}
public RemoveBlockRegen(id) // called when counter reaches 5 sec
{
remove_task(id+TASK_BLOCK) // just to be sure that counter removed
set_task(0.2, "regeneration", id+TASK_REGENERATION, _, _, "b") // start the regeneration
}