View Single Post
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 07-17-2010 , 21:59   Re: [REQ] damage HE grenade...
Reply With Quote #4

Code:
#include <amxmodx> #include <hamsandwich> const DMG_NADE = (1<<24) public plugin_init() {     register_plugin( "No Self-Nade + Damage", "1.1", "Wrecked" )         RegisterHam( Ham_TakeDamage, "player", "HamTakeDamagePre", 0 ) } public HamTakeDamagePre( vic, inf, att, Float:dmg, dmgbits ) {     if( dmgbits & DMG_NADE )     {         if( vic == att )             return HAM_SUPERCEDE;                     new Float:newdmg = dmg * 2 // use this variable to change the dmg                 SetHamParamFloat( 4, newdmg )     }         return HAM_IGNORED; }
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline