View Single Post
Pelipoika
Veteran Member
Join Date: May 2012
Location: Inside
Old 07-12-2015 , 16:25   Re: [SDKHooks] Remove damage without removing push force?
Reply With Quote #3

1.7 Syntax

PHP Code:
public Action OnTakeDamage(int victimint &attackerint &inflictorfloat &damageint &damagetypeint &weaponfloat damageForce[3], float damagePosition[3])
{    
    if(
victim == attacker)
    {
        
damage 0.0
        
TeleportEntity(attackerNULL_VECTORNULL_VECTORdamageForce);
        return 
Plugin_Changed
    }

    return 
Plugin_Continue;

__________________

Last edited by Pelipoika; 07-12-2015 at 16:52.
Pelipoika is offline