PHP Code:
#include < amxmodx >
#include < hamsandwich >
#include < engine >
const hp_value = 30
public plugin_init( ) {
register_plugin( "Extra HP", "1.0", "DoNii" );
RegisterHam( Ham_Killed, "player", "fw_HamKilledPost", 1 );
}
public fw_HamKilledPost( victim, attacker, shouldgib ) {
new Float:health = entity_get_float( attacker, EV_FL_health )
entity_set_float( attacker, EV_FL_health, health + hp_value )
}
__________________