 |
|
Senior Member
|

02-18-2017
, 05:24
Re: How to get user data on how much players he killed?
|
#4
|
Quote:
Originally Posted by edon1337
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 )
}
|
Can you explain me a little ? what the commands are doing Please?
|
|
|
|