我想弄人類回合結束後幸存者會出現信息和加30點數
但是回合結束後沒有任何信息
請問我的插件有什麼問題
#include <amxmodx>
#include <zombieplague>
const WIN_TASK = 5000
public plugin_init()
{
register_plugin("人類事件", "1.0", "文")
register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
}
public event_round_start()
{
// Bugfix
remove_task(WIN_TASK)
}
public zp_round_ended(winteam)
{
// No one won
if (winteam == WIN_NO_ONE && winteam == WIN_HUMANS)
{
remove_task(WIN_TASK)
set_task(2.5, "task_event_human", WIN_TASK)
}
}
public task_event_human(id, deathmsg_block)
{
for (id = 1; id <= 32; id++)
{
if (is_user_alive(id) && (zp_get_user_zombie(id)))
{
set_hudmessage(255, 255, 0, -1.0, 0.28, 0, 0.0, 5.0, 0.01, 0.1, 10)
show_hudmessage(id, "你們是經驗豐富的幸存者,全部獎勵30點數!")
zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) + 30)
}
}
}