This is not needed: set_pev(id, pev_health, ++health);
you just need to make sure the hud does not show 0 by using:
set_msg_arg_int(1, get_msg_argtype(1), 1);
----------------
You also don't need get_msg_argtype(1) and can just use ARG_BYTE for:
set_msg_arg_int(1, ARG_BYTE, 1);
what i used:
Code:
public message_Health(msgid, dest, id)
{
if(!is_user_alive(id))
return PLUGIN_CONTINUE;
static hp;
hp = get_msg_arg_int(1);
if(hp > 0 && (hp % 256) == 0)
{
set_msg_arg_int(1, ARG_BYTE, ++hp);
}
return PLUGIN_CONTINUE;
}