根本不需要改血量什麼的好嗎 = =||
一個小插件就OK了
複製程式
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#define PLUGIN "XX"
#define VERSION "XX"
#define AUTHOR "XX"
#define DMG_FALL (1<<5)
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage")
}
public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
if(!(damage_type & DMG_FALL))
return HAM_IGNORED
return HAM_SUPERCEDE
}