#include <amxmodx>
#include <fakemeta>
public plugin_init()
{
register_plugin("heary", "0.4", "
clester993@gmail.com")
register_message(get_user_msgid("Health"), "message_Health")
}
public plugin_precache()
{
precache_sound("player/heartbeat1.wav")
}
public message_Health(msg_id, msg_dest, msg_entity)
{
new Float:fHealth
pev(msg_id, pev_health, fHealth)
if (Health < 20)
playsound(msg_id)
}
public playsound(msg_id)
{
engfunc(EngFunc_EmitSound, msg_id, CHAN_WEAPON, "player/heartbeat1.wav", 1.0, 0.4, 0, PITCH_NORM)
}