View Single Post
Shiina.Mashiro
Senior Member
Join Date: Sep 2014
Location: Vietnam
Old 04-04-2015 , 01:21   Re: HE Grenade dose not take damage to owner
Reply With Quote #5

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

public plugin_init()
{
     
RegisterHam(Ham_TakeDamage"player""fw_takedamage")
}
public 
fw_takedamage(victiminflictorattackerFloatdamage)
{
     if(
is_user_connected(victim) && victim == attacker && read_data(2) == CSW_HEGRENADE)
          
SetHamParamFloat(4damage 0.0)

not tested
}
__________________
Shiina.Mashiro is offline