Could fix my plugin, than the this work? Ill be wait
Code:
#include <amxmodx>
#include <amxmisc>
#include <zombieplague>
#define PLUGIN "Respawn Info"
#define VERSION "0.1"
#define AUTHOR "StefaN"
new countdown[33]
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg", "surv", "a")
}
public surv(){
new zombiedead=read_data(2)
if(zp_get_user_zombie(zombiedead)) set_task(0.5, "turncountdown", zombiedead)
}
public turncountdown(id)
{
countdown[id] = 30 // Time to respawn
if(task_exists(id + 3431))
{
remove_task(id + 3431)
}
set_task(1.0, "stop", id + 3431, _, _, "b")
return PLUGIN_CONTINUE
}
public stop(gamemode, task_id)
{
new id = task_id - 3431
set_hudmessage(255, 255, 255, 0.03, 0.76, 2, 0.02, 1.0, 0.01)
show_hudmessage(id, "Respawned for %d second...", countdown[id])
countdown[id] -= 1
if(countdown[id] <= 0)
{
if(task_exists(task_id))
{
remove_task(task_id)
}
}
}