PHP Code:
#include <amxmodx>
#include <fun>
#define HEALTH_BONUS 15
#define HEALTH_MAX 100
public plugin_init()
register_event("DeathMsg", "DeathMsg", "a", "1>0");
public DeathMsg()
{
new Killer = read_data( 1 );
if( Killer == read_data( 2 ) )
return;
new Health = get_user_health(Killer);
if (Health < 100)
set_user_health( Killer, min( Health + HEALTH_BONUS, HEALTH_MAX ) );
}
I use this plugin for health bonuses.. When player kills someone he gets health.. But there is one thing.. When you suicide, players stucks and don't spawn any more until they reconnect.. Can you fix this?
__________________