我想弄人类回合结束后幸存者会出现信息和加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)
}
}
}