可以改主插件
先打開zombie_plague40.sma在public plugin_init()這行的下面找到這行// Events
在下面加上register_event("DeathMsg","headshot","ade","3=1","5=0")
再拉到最底下
加上
public headshot()
{
new killer = read_data(1)
new victim = read_data(2)
new Killer[33]
new Victim[33]
get_user_name(killer, Killer,32)
get_user_name(victim, Victim,32)
if(g_zombie[victim])
{
remove_task(victim+TASK_SPAWN)
set_hudmessage( 150, 50, 200, -1.0, 0.25, 1, 0.1, 10.0, 0.1, 0.1, 2)
show_hudmessage(0, "%s killed %s with a headshot", Killer, Victim)
}
return PLUGIN_CONTINUE
}
再去轉amxx就可以了
在別的文章張上看到的
忘了是哪篇