Page 1 of 1

zp 5.0.8 auto respawn

Posted: 2017 May 07 18:27
by Kenzy
Hello,
can u anyone help me to change this plugin spawn to zombie not Human ?
i use this plugin on mod ZP 5.0.8 and that is auto respawn when player join server and spawn to human,
can you change it to spawn to zombie not human :)
thanks.

Code: Select all

#include <amxmodx>#include <hamsandwich> #define PLUGIN "Simple Auto-Respawn"#define VERSION "0.0.1"#define AUTHOR "Im Author" const TASK_RESPAWN = 555 new cvar_respawn, cvar_tiempo, cvar_selfkill public plugin_init(){    register_plugin(PLUGIN, VERSION, AUTHOR)        cvar_respawn = register_cvar("respawn_enabled", "1")    cvar_tiempo = register_cvar("respawn_delay", "5.0")    cvar_selfkill = register_cvar("respawn_selfkill", "0")        RegisterHam(Ham_Killed, "player", "Ham_PlayerKilled", 1)} public Ham_PlayerKilled(victim, attacker, shouldgib){    // Suicidio & selfkill 0 = return    // enabled 0 = return    if (!get_pcvar_num(cvar_respawn) ||    (victim == attacker && !get_pcvar_num(cvar_selfkill))) return;        set_task(get_pcvar_float(cvar_tiempo), "respawn", victim + TASK_RESPAWN)} public respawn(id){    id -= TASK_RESPAWN        if (!is_user_connected(id)) return        ExecuteHamB(Ham_CS_RoundRespawn, id)    client_print(id, print_center, "Fuiste revivido!")} 

Re: zp 5.0.8 auto respawn

Posted: 2017 May 08 22:18
by GoogleBot
#include <zombieplague>
........

if(zp_has_round_started())
{
zp_infect_user(id)
}