Raised This Month: $ Target: $400
 0% 

Anti Bomb Self


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 01-24-2014 , 03:43   Re: Anti Bomb Self
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <hamsandwich>

const DMG_HEGRENADE = (1<<24)

public 
plugin_init()
{
    
register_plugin("No HE SelfDamage""0.0.1""wbyokomo")
    
    
RegisterHam(Ham_TakeDamage"player""OnTakeDamage")
}

public 
OnTakeDamage(victiminflictorattackerFloat:damagedamagetype)
{
    if((
damagetype DMG_HEGRENADE) && is_user_connected(attacker) && attacker == victim)
    {
        
SetHamParamFloat(40.0)
        return 
HAM_SUPERCEDE;
    }
    
    return 
HAM_IGNORED;


Last edited by yokomo; 01-24-2014 at 03:45.
yokomo 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 10:13.


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