Quote:
Originally Posted by administratora
If the one provided is not working, try that one:
PHP Code:
#include <amxmodx>
#include <fun>
new g_iDefuseOnGoing[33];
public client_preinfochanged(id)
{
if (g_iDefuseOnGoing[id])
{
g_iDefuseOnGoing[id] = 0;
client_print(id, print_center, "Defuse cancelled due to damage!");
}
}
public bomb_defuse(id, time)
{
g_iDefuseOnGoing[id] = 1;
set_task(float(time), "defuse_task", id);
}
public defuse_task(id)
{
g_iDefuseOnGoing[id] = 0;
client_print(id, print_center, "Bomb defused successfully!");
}
public client_death(id)
{
if (g_iDefuseOnGoing[id])
{
g_iDefuseOnGoing[id] = 0;
client_print(id, print_center, "Defuse cancelled due to death!");
}
}
|
Hey thanks for the time writing that, but i don't think that is what i am looking for.
I would need a plugin that actively cancels the defuse on damage for humans and zbots , not only a message.