Raised This Month: $535 Target: $400
 133% 

Cancel Defuse on hit


Post New Thread Reply   
 
Thread Tools Display Modes
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 12-22-2022 , 12:19   Re: Cancel Defuse on hit
Reply With Quote #11

He asked for player damage not death, you cannot defuse as a dead player anyway... Lol.
__________________
deprale is offline
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 12-23-2022 , 16:43   Re: Cancel Defuse on hit
Reply With Quote #12

Quote:
Originally Posted by administratora View Post
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(idprint_center"Defuse cancelled due to damage!");
    }
}

public 
bomb_defuse(idtime)
{
    
g_iDefuseOnGoing[id] = 1;
    
set_task(float(time), "defuse_task"id);
}

public 
defuse_task(id)
{
    
g_iDefuseOnGoing[id] = 0;
    
client_print(idprint_center"Bomb defused successfully!");
}

public 
client_death(id)
{
    if (
g_iDefuseOnGoing[id])
    {
        
g_iDefuseOnGoing[id] = 0;
        
client_print(idprint_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.
Ark_Procession is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:11.


Powered by vBulletin®
Copyright ©2000 - 2023, vBulletin Solutions, Inc.
Theme made by Freecode