Plugin Respawn ZM

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
User avatar
PooKeR
Membru, skill 0
Membru, skill 0
Posts: 30
Joined: 27 Oct 2019, 13:13
Detinator Steam: Da
Detinator server CS: Biohazard.DarkEvils.
SteamID: pookerroot
Fond eXtream: 0
Location: DarkEvils.Ro
Discord: PooKeR#5052
Has thanked: 7 times

29 Oct 2021, 00:20

Plugin Cerut: Respawn Zombie
Descriere (adica ce face el mai exact): sa de'a respawn doar la zombi
Serverul impune conditii strict HLDS/REHLDS?: HLDS
Ai cautat pluginul?(daca da, precizeaza cum): da, dar nu am gasit din pacate pentru biohazard
Necesita mod special?: nu
Configuratie server: v2.2 biohazard

Are cineva va rog frumos sau ma poate ajuta cu un plugin care sa de-a respawn dupa ce mori, si sa te transfere la echipa Terro si sa devi zombi ?

sau daca nu se poate....imi puteti modifica acest SMA, ca atunci cand mori, sa te respawneze doar in echipa TERRO , asa infectia va lua loc, si oricine va muri, o sa fie zombie.
| Afiseaza codul
#include <amxmodx>
#include <fakemeta> 
#include <hamsandwich>

#define PLUGIN "CS Elimination Respawn"
#define VERSION "1.0"
#define AUTHOR "Sneaky.amxx"

#define RESPAWN_TIME 5
#define TASK_REVIVE 22092015

new g_MyKiller[33], g_RespawnTimeCount[33]
new g_MsgBarTime, g_HamBot, g_MaxPlayers

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawn_Post", 1)
	RegisterHam(Ham_Killed, "player", "fw_PlayerKilled_Post", 1)
	
	register_message(get_user_msgid("ClCorpse"), "Message_ClCorpse")
	
	g_MsgBarTime = get_user_msgid("BarTime")
	g_MaxPlayers = get_maxplayers()
}

public client_putinserver(id)
{
	if(!g_HamBot && is_user_bot(id))
	{
		g_HamBot = 1
		set_task(0.1, "Register_HamBot", id)
	}
}

public Register_HamBot(id) 
{
	RegisterHamFromEntity(Ham_Spawn, id, "fw_PlayerSpawn_Post", 1)
	RegisterHamFromEntity(Ham_Killed, id, "fw_PlayerKilled_Post", 1)
}

public fw_PlayerSpawn_Post(id)
{
	g_MyKiller[id] = 0
}

public fw_PlayerKilled_Post(Victim, Attacker)
{
	if(!is_user_connected(Victim)) return
	
	static Killer; Killer = 0
	if(is_user_connected(Attacker)) Killer = Attacker
	
	for(new i = 0; i < g_MaxPlayers; i++)
	{
		if(!is_user_connected(i))
			continue
		if(is_user_alive(i))
			continue
			
		if(g_MyKiller == Victim)
		{
			Check_PlayerDeath(i+TASK_REVIVE)
			g_MyKiller = 0
		}
	}
	
	if(Killer)
	{
		if(Killer == Victim) 
		{
			Check_PlayerDeath(Victim+TASK_REVIVE)
			return
		}
		
		g_MyKiller[Victim] = Killer
		client_print(Victim, print_center, "Èç¹ûɱËÀÄãµÄµÐÈËËÀÁËÄ㽫ÖØÉú")
	} else {
		Check_PlayerDeath(Victim+TASK_REVIVE)
	}
}

public Check_PlayerDeath(id)
{
	id -= TASK_REVIVE
	
	if(!is_user_connected(id) || is_user_alive(id))
		return
	if(pev(id, pev_deadflag) != 2)
	{
		set_task(0.25, "Check_PlayerDeath", id+TASK_REVIVE)
		return
	}

	g_RespawnTimeCount[id] = RESPAWN_TIME

	// Bar
	message_begin(MSG_ONE_UNRELIABLE, g_MsgBarTime, {0, 0, 0}, id)
	write_byte(g_RespawnTimeCount[id])
	write_byte(0)
	message_end()
	
	// Check Respawn
	Start_Revive(id+TASK_REVIVE)
}

public Start_Revive(id)
{
	id -= TASK_REVIVE
	
	if(!is_user_connected(id) || is_user_alive(id))  
		return
	if(g_RespawnTimeCount[id] <= 0.0)
	{
		Revive_Now(id+TASK_REVIVE)
		return
	}
		
	client_print(id, print_center, "Ä㽫»á»Ö¸´ %i Ãë", g_RespawnTimeCount[id])
	
	g_RespawnTimeCount[id]--
	set_task(1.0, "Start_Revive", id+TASK_REVIVE)
}

public Revive_Now(id)
{
	id -= TASK_REVIVE
	
	if(!is_user_connected(id) || is_user_alive(id))
		return
	
	
	// Remove Task
	remove_task(id+TASK_REVIVE)
	
	set_pev(id, pev_deadflag, DEAD_RESPAWNABLE)
	ExecuteHamB(Ham_CS_RoundRespawn, id)
}

public Message_ClCorpse()
{
	//static id; id = get_msg_arg_int(12)
	return PLUGIN_HANDLED
}
RoyalServer
User avatar
PooKeR
Membru, skill 0
Membru, skill 0
Posts: 30
Joined: 27 Oct 2019, 13:13
Detinator Steam: Da
Detinator server CS: Biohazard.DarkEvils.
SteamID: pookerroot
Fond eXtream: 0
Location: DarkEvils.Ro
Discord: PooKeR#5052
Has thanked: 7 times

30 Oct 2021, 00:55

up! :face_begging_eyes:
User avatar
PooKeR
Membru, skill 0
Membru, skill 0
Posts: 30
Joined: 27 Oct 2019, 13:13
Detinator Steam: Da
Detinator server CS: Biohazard.DarkEvils.
SteamID: pookerroot
Fond eXtream: 0
Location: DarkEvils.Ro
Discord: PooKeR#5052
Has thanked: 7 times

31 Oct 2021, 00:34

up !
Manutza*
Membru, skill 0
Membru, skill 0
Posts: 80
Joined: 10 Nov 2018, 11:47
Detinator Steam: Da
CS Status: id/amgshowtime
Fond eXtream: 0
Discord: RS6#1237
Been thanked: 4 times
Contact:

04 Nov 2021, 12:09

Incearca
| Afiseaza codul
#include <amxmodx>
#include <fakemeta> 
#include <hamsandwich>
#include <cstrike>

#define PLUGIN "CS Elimination Respawn"
#define VERSION "1.0"
#define AUTHOR "Sneaky.amxx"

#define RESPAWN_TIME 5
#define TASK_REVIVE 22092015

new g_MyKiller[33], g_RespawnTimeCount[33]
new g_MsgBarTime, g_HamBot, g_MaxPlayers

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawn_Post", 1)
	RegisterHam(Ham_Killed, "player", "fw_PlayerKilled_Post", 1)
	
	register_message(get_user_msgid("ClCorpse"), "Message_ClCorpse")
	
	g_MsgBarTime = get_user_msgid("BarTime")
	g_MaxPlayers = get_maxplayers()
}

public client_putinserver(id)
{
	if(!g_HamBot && is_user_bot(id))
	{
		g_HamBot = 1
		set_task(0.1, "Register_HamBot", id)
	}
}

public Register_HamBot(id) 
{
	RegisterHamFromEntity(Ham_Spawn, id, "fw_PlayerSpawn_Post", 1)
	RegisterHamFromEntity(Ham_Killed, id, "fw_PlayerKilled_Post", 1)
}

public fw_PlayerSpawn_Post(id)
{
	g_MyKiller[id] = 0
}

public fw_PlayerKilled_Post(Victim, Attacker)
{
	if(!is_user_connected(Victim)) return
	
	static Killer; Killer = 0
	if(is_user_connected(Attacker)) Killer = Attacker
	
	for(new i = 0; i < g_MaxPlayers; i++)
	{
		if(!is_user_connected(i))
			continue
		if(is_user_alive(i))
			continue
			
		if(g_MyKiller == Victim)
		{
			Check_PlayerDeath(i+TASK_REVIVE)
			g_MyKiller = 0
		}
	}
	
	if(Killer)
	{
		if(Killer == Victim) 
		{
			Check_PlayerDeath(Victim+TASK_REVIVE)
			return
		}
		
		g_MyKiller[Victim] = Killer
		client_print(Victim, print_center, "Èç¹ûɱËÀÄãµÄµÐÈËËÀÁËÄ㽫ÖØÉú")
	} else {
		Check_PlayerDeath(Victim+TASK_REVIVE)
	}
}

public Check_PlayerDeath(id)
{
	id -= TASK_REVIVE
	
	if(!is_user_connected(id) || is_user_alive(id))
		return
	if(pev(id, pev_deadflag) != 2)
	{
		set_task(0.25, "Check_PlayerDeath", id+TASK_REVIVE)
		return
	}

	g_RespawnTimeCount[id] = RESPAWN_TIME

	// Bar
	message_begin(MSG_ONE_UNRELIABLE, g_MsgBarTime, {0, 0, 0}, id)
	write_byte(g_RespawnTimeCount[id])
	write_byte(0)
	message_end()
	
	// Check Respawn
	Start_Revive(id+TASK_REVIVE)
}

public Start_Revive(id)
{
	id -= TASK_REVIVE
	
	if(!is_user_connected(id) || is_user_alive(id))  
		return
	if(g_RespawnTimeCount[id] <= 0.0)
	{
		Revive_Now(id+TASK_REVIVE)
		return
	}
		
	client_print(id, print_center, "Ä㽫»á»Ö¸´ %i Ãë", g_RespawnTimeCount[id])
	
	g_RespawnTimeCount[id]--
	set_task(1.0, "Start_Revive", id+TASK_REVIVE)
}

public Revive_Now(id)
{
	id -= TASK_REVIVE
	
	if(!is_user_connected(id) || is_user_alive(id))
		return
	
	
	// Remove Task
	remove_task(id+TASK_REVIVE)
	if(cs_get_user_team(id) == CS_TEAM_CT)
	cs_set_user_team(id, CS_TEAM_T)
	set_pev(id, pev_deadflag, DEAD_RESPAWNABLE)
	ExecuteHamB(Ham_CS_RoundRespawn, id)
}

public Message_ClCorpse()
{
	//static id; id = get_msg_arg_int(12)
	return PLUGIN_HANDLED
}
Image
User avatar
CryWolf
Administrator
Administrator
Posts: 6505
Joined: 07 Aug 2008, 16:33
Detinator Steam: Da
Reputatie: Administrator
Fost Scripter
Manager CS2.eXtream.Ro
Fost Detinator ZM.eXtream.Ro
Fost manager CS.eXtream.Ro
Fost manager CSGO.eXtream.Ro
Fost manager global
Location: Botosani
Discord: crywolf1989
Has thanked: 202 times
Been thanked: 850 times
Contact:

04 Nov 2021, 16:03

Trebuie inclus modul biohazard

Code: Select all


#include <amxmodx>
#include <biohazard>
#include <fakemeta> 
#include <hamsandwich>

#define PLUGIN "CS Elimination Respawn"
#define VERSION "1.0"
#define AUTHOR "Sneaky.amxx"

#define RESPAWN_TIME 5
#define TASK_REVIVE 22092015

new g_MyKiller[33], g_RespawnTimeCount[33]
new g_MsgBarTime, g_HamBot, g_MaxPlayers

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawn_Post", 1)
	RegisterHam(Ham_Killed, "player", "fw_PlayerKilled_Post", 1)
	
	register_message(get_user_msgid("ClCorpse"), "Message_ClCorpse")
	
	g_MsgBarTime = get_user_msgid("BarTime")
	g_MaxPlayers = get_maxplayers()
}

public client_putinserver(id)
{
	if(!g_HamBot && is_user_bot(id))
	{
		g_HamBot = 1
		set_task(0.1, "Register_HamBot", id)
	}
}

public Register_HamBot(id) 
{
	RegisterHamFromEntity(Ham_Spawn, id, "fw_PlayerSpawn_Post", 1)
	RegisterHamFromEntity(Ham_Killed, id, "fw_PlayerKilled_Post", 1)
}

public fw_PlayerSpawn_Post(id)
{
	g_MyKiller[id] = 0
}

public fw_PlayerKilled_Post(Victim, Attacker)
{
	if(!is_user_connected(Victim)) return
	
	static Killer; Killer = 0
	if(is_user_connected(Attacker)) Killer = Attacker
	
	for(new i = 0; i < g_MaxPlayers; i++)
	{
		if(!is_user_connected(i))
			continue
		if(is_user_alive(i))
			continue
			
		if(g_MyKiller == Victim)
		{
			Check_PlayerDeath(i+TASK_REVIVE)
			g_MyKiller = 0
		}
	}
	
	if(Killer)
	{
		if(Killer == Victim) 
		{
			Check_PlayerDeath(Victim+TASK_REVIVE)
			return
		}
		
		g_MyKiller[Victim] = Killer
		client_print(Victim, print_center, "Èç¹ûɱËÀÄãµÄµÐÈËËÀÁËÄ㽫ÖØÉú")
	} else {
		Check_PlayerDeath(Victim+TASK_REVIVE)
	}
}

public Check_PlayerDeath(id)
{
	id -= TASK_REVIVE
	
	if(!is_user_connected(id) || is_user_alive(id))
		return
	if(pev(id, pev_deadflag) != 2)
	{
		set_task(0.25, "Check_PlayerDeath", id+TASK_REVIVE)
		return
	}

	g_RespawnTimeCount[id] = RESPAWN_TIME

	// Bar
	message_begin(MSG_ONE_UNRELIABLE, g_MsgBarTime, {0, 0, 0}, id)
	write_byte(g_RespawnTimeCount[id])
	write_byte(0)
	message_end()
	
	// Check Respawn
	Start_Revive(id+TASK_REVIVE)
}

public Start_Revive(id)
{
	id -= TASK_REVIVE
	
	if(!is_user_connected(id) || is_user_alive(id))  
		return
	if(g_RespawnTimeCount[id] <= 0.0)
	{
		Revive_Now(id+TASK_REVIVE)
		return
	}
		
	client_print(id, print_center, "Ä㽫»á»Ö¸´ %i Ãë", g_RespawnTimeCount[id])
	
	g_RespawnTimeCount[id]--
	set_task(1.0, "Start_Revive", id+TASK_REVIVE)
}

public Revive_Now(id)
{
	id -= TASK_REVIVE
	
	if(!is_user_connected(id) || is_user_alive(id))
		return
	
	
	// Remove Task
	remove_task(id+TASK_REVIVE)
	
	set_pev(id, pev_deadflag, DEAD_RESPAWNABLE)
	ExecuteHamB(Ham_CS_RoundRespawn, id)
	cs_set_user_team(id, CS_TEAM_T)
	infect_user (id)
}

public Message_ClCorpse()
{
	//static id; id = get_msg_arg_int(12)
	return PLUGIN_HANDLED
}
NU IMI MAI DA-TI PM CU CERERE AJUTOR/SAMD, FOLOSITI FORUMUL, CITESC MAJORITATEA TOPICURILOR.
www.dark-arena.com , SERVERE CS / CS2 / L4D AU REVENIT ONLINE.
www.diasporaiptv.ro - SERVICII PREMIUM IPTV

Image

Image
User avatar
PooKeR
Membru, skill 0
Membru, skill 0
Posts: 30
Joined: 27 Oct 2019, 13:13
Detinator Steam: Da
Detinator server CS: Biohazard.DarkEvils.
SteamID: pookerroot
Fond eXtream: 0
Location: DarkEvils.Ro
Discord: PooKeR#5052
Has thanked: 7 times

04 Nov 2021, 18:48

Manutza* wrote:
04 Nov 2021, 12:09
Incearca
| Afiseaza codul
#include <amxmodx>
#include <fakemeta> 
#include <hamsandwich>
#include <cstrike>

#define PLUGIN "CS Elimination Respawn"
#define VERSION "1.0"
#define AUTHOR "Sneaky.amxx"

#define RESPAWN_TIME 5
#define TASK_REVIVE 22092015

new g_MyKiller[33], g_RespawnTimeCount[33]
new g_MsgBarTime, g_HamBot, g_MaxPlayers

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawn_Post", 1)
	RegisterHam(Ham_Killed, "player", "fw_PlayerKilled_Post", 1)
	
	register_message(get_user_msgid("ClCorpse"), "Message_ClCorpse")
	
	g_MsgBarTime = get_user_msgid("BarTime")
	g_MaxPlayers = get_maxplayers()
}

public client_putinserver(id)
{
	if(!g_HamBot && is_user_bot(id))
	{
		g_HamBot = 1
		set_task(0.1, "Register_HamBot", id)
	}
}

public Register_HamBot(id) 
{
	RegisterHamFromEntity(Ham_Spawn, id, "fw_PlayerSpawn_Post", 1)
	RegisterHamFromEntity(Ham_Killed, id, "fw_PlayerKilled_Post", 1)
}

public fw_PlayerSpawn_Post(id)
{
	g_MyKiller[id] = 0
}

public fw_PlayerKilled_Post(Victim, Attacker)
{
	if(!is_user_connected(Victim)) return
	
	static Killer; Killer = 0
	if(is_user_connected(Attacker)) Killer = Attacker
	
	for(new i = 0; i < g_MaxPlayers; i++)
	{
		if(!is_user_connected(i))
			continue
		if(is_user_alive(i))
			continue
			
		if(g_MyKiller == Victim)
		{
			Check_PlayerDeath(i+TASK_REVIVE)
			g_MyKiller = 0
		}
	}
	
	if(Killer)
	{
		if(Killer == Victim) 
		{
			Check_PlayerDeath(Victim+TASK_REVIVE)
			return
		}
		
		g_MyKiller[Victim] = Killer
		client_print(Victim, print_center, "Èç¹ûɱËÀÄãµÄµÐÈËËÀÁËÄ㽫ÖØÉú")
	} else {
		Check_PlayerDeath(Victim+TASK_REVIVE)
	}
}

public Check_PlayerDeath(id)
{
	id -= TASK_REVIVE
	
	if(!is_user_connected(id) || is_user_alive(id))
		return
	if(pev(id, pev_deadflag) != 2)
	{
		set_task(0.25, "Check_PlayerDeath", id+TASK_REVIVE)
		return
	}

	g_RespawnTimeCount[id] = RESPAWN_TIME

	// Bar
	message_begin(MSG_ONE_UNRELIABLE, g_MsgBarTime, {0, 0, 0}, id)
	write_byte(g_RespawnTimeCount[id])
	write_byte(0)
	message_end()
	
	// Check Respawn
	Start_Revive(id+TASK_REVIVE)
}

public Start_Revive(id)
{
	id -= TASK_REVIVE
	
	if(!is_user_connected(id) || is_user_alive(id))  
		return
	if(g_RespawnTimeCount[id] <= 0.0)
	{
		Revive_Now(id+TASK_REVIVE)
		return
	}
		
	client_print(id, print_center, "Ä㽫»á»Ö¸´ %i Ãë", g_RespawnTimeCount[id])
	
	g_RespawnTimeCount[id]--
	set_task(1.0, "Start_Revive", id+TASK_REVIVE)
}

public Revive_Now(id)
{
	id -= TASK_REVIVE
	
	if(!is_user_connected(id) || is_user_alive(id))
		return
	
	
	// Remove Task
	remove_task(id+TASK_REVIVE)
	if(cs_get_user_team(id) == CS_TEAM_CT)
	cs_set_user_team(id, CS_TEAM_T)
	set_pev(id, pev_deadflag, DEAD_RESPAWNABLE)
	ExecuteHamB(Ham_CS_RoundRespawn, id)
}

public Message_ClCorpse()
{
	//static id; id = get_msg_arg_int(12)
	return PLUGIN_HANDLED
}


IMI DA ERRORI LA COMPILARE


Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

respawn_bio.sma(64) : error 033: array must be indexed (variable "g_MyKiller")
respawn_bio.sma(67 -- 68) : error 033: array must be indexed (variable "g_MyKiller")
respawn_bio.sma(141) : error 017: undefined symbol "cs_set_user_team"
respawn_bio.sma(142) : error 088: number of arguments does not match definition

4 Errors.
Could not locate output file respawn_bio.amx (compile failed).


ERROR: Your plugin failed to compile, see above.
User avatar
CryWolf
Administrator
Administrator
Posts: 6505
Joined: 07 Aug 2008, 16:33
Detinator Steam: Da
Reputatie: Administrator
Fost Scripter
Manager CS2.eXtream.Ro
Fost Detinator ZM.eXtream.Ro
Fost manager CS.eXtream.Ro
Fost manager CSGO.eXtream.Ro
Fost manager global
Location: Botosani
Discord: crywolf1989
Has thanked: 202 times
Been thanked: 850 times
Contact:

05 Nov 2021, 07:58

Code: Select all

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
O sal compilezi cand zboara porcii cu AMXX 1.8.1
https://www.amxmodx.org/downloads-new.php descarca AMXX 1.19 sau 1.10

Code: Select all


#include <amxmodx>
#include <cstrike>
#include <biohazard>
#include <fakemeta> 
#include <hamsandwich>

#define PLUGIN "CS Elimination Respawn"
#define VERSION "1.0"
#define AUTHOR "Sneaky.amxx"

#define RESPAWN_TIME 5
#define TASK_REVIVE 22092015

new g_MyKiller[33], g_RespawnTimeCount[33]
new g_MsgBarTime, g_HamBot, g_MaxPlayers

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawn_Post", 1)
	RegisterHam(Ham_Killed, "player", "fw_PlayerKilled_Post", 1)
	
	register_message(get_user_msgid("ClCorpse"), "Message_ClCorpse")
	
	g_MsgBarTime = get_user_msgid("BarTime")
	g_MaxPlayers = get_maxplayers()
}

public client_putinserver(id)
{
	if(!g_HamBot && is_user_bot(id))
	{
		g_HamBot = 1
		set_task(0.1, "Register_HamBot", id)
	}
}

public Register_HamBot(id) 
{
	RegisterHamFromEntity(Ham_Spawn, id, "fw_PlayerSpawn_Post", 1)
	RegisterHamFromEntity(Ham_Killed, id, "fw_PlayerKilled_Post", 1)
}

public fw_PlayerSpawn_Post(id)
{
	g_MyKiller[id] = 0
}

public fw_PlayerKilled_Post(Victim, Attacker)
{
	if(!is_user_connected(Victim)) return
	
	static Killer; Killer = 0
	if(is_user_connected(Attacker)) Killer = Attacker
	
	for(new i = 0; i < g_MaxPlayers; i++)
	{
		if(!is_user_connected(i))
			continue
		if(is_user_alive(i))
			continue
			
		if(g_MyKiller == Victim)
		{
			Check_PlayerDeath(i+TASK_REVIVE)
			g_MyKiller = 0
		}
	}
	
	if(Killer)
	{
		if(Killer == Victim) 
		{
			Check_PlayerDeath(Victim+TASK_REVIVE)
			return
		}
		
		g_MyKiller[Victim] = Killer
		client_print(Victim, print_center, "Èç¹ûɱËÀÄãµÄµÐÈËËÀÁËÄ㽫ÖØÉú")
	} else {
		Check_PlayerDeath(Victim+TASK_REVIVE)
	}
}

public Check_PlayerDeath(id)
{
	id -= TASK_REVIVE
	
	if(!is_user_connected(id) || is_user_alive(id))
		return
	if(pev(id, pev_deadflag) != 2)
	{
		set_task(0.25, "Check_PlayerDeath", id+TASK_REVIVE)
		return
	}

	g_RespawnTimeCount[id] = RESPAWN_TIME

	// Bar
	message_begin(MSG_ONE_UNRELIABLE, g_MsgBarTime, {0, 0, 0}, id)
	write_byte(g_RespawnTimeCount[id])
	write_byte(0)
	message_end()
	
	// Check Respawn
	Start_Revive(id+TASK_REVIVE)
}

public Start_Revive(id)
{
	id -= TASK_REVIVE
	
	if(!is_user_connected(id) || is_user_alive(id))  
		return
	if(g_RespawnTimeCount[id] <= 0.0)
	{
		Revive_Now(id+TASK_REVIVE)
		return
	}
		
	client_print(id, print_center, "Ä㽫»á»Ö¸´ %i Ãë", g_RespawnTimeCount[id])
	
	g_RespawnTimeCount[id]--
	set_task(1.0, "Start_Revive", id+TASK_REVIVE)
}

public Revive_Now(id)
{
	id -= TASK_REVIVE
	
	if(!is_user_connected(id) || is_user_alive(id))
		return
	
	
	// Remove Task
	remove_task(id+TASK_REVIVE)
	
	set_pev(id, pev_deadflag, DEAD_RESPAWNABLE)
	ExecuteHamB(Ham_CS_RoundRespawn, id)
	cs_set_user_team(id, CS_TEAM_T)
	infect_user (id)
}

public Message_ClCorpse()
{
	//static id; id = get_msg_arg_int(12)
	return PLUGIN_HANDLED
}
Un plugin special pentru asta este aici: https://www.dark-arena.com/forum/viewto ... 1296#p1296

Code: Select all

bio_3rdperson.sma - poti vedea modelul 3d
bio_baseclasses - baza classelor de zombie
bio_bigzombie - Clasa Big Zombie
bio_classiczombie - Clasa Classica de ZM
bio_climbingzombie - Clasa cataratoare (pe pereti)
bio_fastzombie - Clasa rapida de ZM
bio_knockback2 - Un knockback care functioneaza cu aceasta clasa si face sangele galben
bio_misc - updatat pe acest mod
bio_zspawn - va puteti spawna in joc ca zombie folsind comanda /zspawn
bio_ztele - va puteti teleporta ca zm /ztele sau ztele
biohazard.sma (coreul biohazard)
health_dispalyer - va va afisa viata / ap /hp pe centru jos
NU IMI MAI DA-TI PM CU CERERE AJUTOR/SAMD, FOLOSITI FORUMUL, CITESC MAJORITATEA TOPICURILOR.
www.dark-arena.com , SERVERE CS / CS2 / L4D AU REVENIT ONLINE.
www.diasporaiptv.ro - SERVICII PREMIUM IPTV

Image

Image
Post Reply

Return to “Cereri”

  • Information