This is an example, im sorry, i can't do it right now, maybe you will be able to do it following my example
Code:
new disablefly[33]
in prethink return FMRES_IGNORED if disablefly[id] = true
client_disconnect(id) { remove_task(id) }
take_damage() { disablefly(victim) = true; set_task(5.0, "reset-me", id) }
reset-me(id){ disablefly(id) = false }