zp 5.0.8 auto respawn

Forumas specialiai skirtas pamokoms kuriant CS 1.6 serverį
Post Reply
Kenzy
Jau po truputį tampa savu
Posts: 106
Joined: 2017 Jan 22 20:41

zp 5.0.8 auto respawn

Post 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!")} 

GoogleBot
Ar galit patikėti? Jis jau parašė 20 žinučių
Posts: 24
Joined: 2016 Nov 13 00:04
Skype: kasys123

Re: zp 5.0.8 auto respawn

Post by GoogleBot »

#include <zombieplague>
........

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

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests