PHP Code:
#include <amxmodx>
#include <engine>
#include <csx>
public plugin_init() {
register_plugin("He mod ^^ ", "1.0", "Sn!ff3r")
}
public grenade_throw( index,greindex,wId )
{
// index == player id, greindex == grenade id, wid == grenade type
if(wId == 4) // hegrenade
{
entity_set_float(greindex, EV_FL_dmg, 200.0) // doesnt work :(
entity_set_float(greindex, EV_FL_gravity, 1.8) // work fine
}
return PLUGIN_HANDLED
}
Changing grenade gravity is working, damage not... anyone can help me?