Raised This Month: $51 Target: $400
 12% 

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 , 11: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 , 15: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



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 02:16.


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