Hi. I need help with two task. I try do in code that if you dead others your team mates can revival you but they have only 15 seconds to do it! I have code with one of plugin on this forum. And how can I must edit it to my idea?
It's code here:
Code:
public event_death()
{
new id = read_data(2)
reset_player(id)
if(g_haskit[id])
{
g_haskit[id] = false
}
static Float:minsize[3]
pev(id, pev_mins, minsize)
if(minsize[2] == -18.0)
g_wasducking[id] = true
else
g_wasducking[id] = false
set_task(0.5, "task_check_dead_flag", id)
}
public task_check_dead_flag(id)
{
if(!is_user_connected(id))
return
if(pev(id, pev_deadflag) == DEAD_DEAD)
create_fake_corpse(id)
else
set_task(0.5, "task_check_dead_flag", id)
}
I think I must do it here but how?
Sry for my not good english