Code:
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#tryinclude <biohazard>
new PLUG[] = "Zombie Respawn";
new VERS[] = "1.0";
new AUTH[] = "LeviN & Stewie!";
public plugin_init()
{
register_plugin(PLUG, VERS, AUTH);
register_clcmd("say !zspawn", "Spawn");
register_clcmd("say_team !zspawn", "Spawn");
register_clcmd("say_team /zspawn", "Spawn");
register_clcmd("say /zspawn", "Spawn");
}
public Spawn(id)
{
if(!is_user_alive(id))
{
cs_set_user_team(id, CS_TEAM_T);
set_task(0.1, "spawn_again", id);
}
return PLUGIN_HANDLED;
}
public spawn_again(id)
{
ExecuteHamB(Ham_Spawn, id);
set_task(0.1, "make_zombie", id);
}
public make_zombie(id)
{
infect_user(id);
}
It won't set them as a zombie but would revive a human. I need it to turn them into a zombie.
__________________