Zombie Online
Últimos assuntos
» Zombie Plague Special 2.4 (24/04/2015)por [P]erfec[T] [S]cr[@]s[H] Qui Abr 30 2015, 13:19
» Ideia Para Novos Plugins
por willyan Sáb Dez 21 2013, 02:28
» [Extra Item] Modo Pain
por [P]erfec[T] [S]cr[@]s[H] Ter Dez 03 2013, 10:26
» Criando uma CVAR Simples
por Br7 Dom Dez 01 2013, 12:34
» Regras ao postar seu servidor
por MtsLa!<3.L Dom Dez 01 2013, 11:27
» Regras do nosso fórum
por MtsLa!<3.L Dom Dez 01 2013, 11:23
» [Plugin] Chapeus Natal
por MtsLa!<3.L Sáb Nov 30 2013, 21:20
» [Protecao] Ddos
por jone_pvh Sáb Nov 30 2013, 20:52
» Zombie Plague Advance New Modes v 1.0
por jone_pvh Sáb Nov 30 2013, 11:40
» Uso dos Ammo Packs no fórum
por MtsLa!<3.L Sex Nov 29 2013, 21:57
» (Valve Hammer)Tamanhos
por MtsLa!<3.L Sex Nov 29 2013, 21:48
» [Duelo] MtsLa!<3.L & Dexter S
por MtsLa!<3.L Sex Nov 29 2013, 15:44
» [Extra Item] Modo Goku
por MtsLa!<3.L Sex Nov 29 2013, 12:02
Os membros mais ativos da semana
Nenhum usuário |
Os que mais criam tópicos
MtsLa!<3.L | ||||
[P]erfec[T] [S]cr[@]s[H] | ||||
[D]etonado[R] | ||||
ApC # $ Awp PJL $ | ||||
Synopsis | ||||
HDjose | ||||
Jovem_BR | ||||
Freddy Krueger [Jhadson] | ||||
waLLzyk | ||||
XaropinhoO |
[Plugin] Reviver 100% sem bugs
2 participantes
Página 1 de 1
[Plugin] Reviver 100% sem bugs
Ola Pessoal Como eu observava o reviver do leozinho e de outros eu vi que boa parte tinha o bug de reviver no round de Assassin vs Sniper , Nightmare, e etc. Então eu editei esse reviver que é compativel pra todos os ZPs (Exceto 5.0 eu acho) e que não revive em nenhum round ao não ser o de infecção então quem quiser a sma ta ai:
- Código:
#include <amxmodx>
#include <zombieplague>
#define PLUGIN "[ZP] Addon: /reviver"
#define VERSION "3.0"
#define AUTHOR "Leozinho | [P]erfec[T] [S]cr[@]s[H]"
new allow_respawn
public plugin_init()
{
register_clcmd("say reviver", "cmd_respawn")
register_clcmd("say_team reviver", "cmd_respawn")
register_clcmd("say /reviver", "cmd_respawn")
register_clcmd("say_team /reviver", "cmd_respawn")
register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
}
public event_round_start()
{
for(new id = 1; id <= get_maxplayers(); id++)
{
allow_respawn = false
}
}
public zp_round_started(id)
{
if(id == MODE_INFECTION)
{
allow_respawn = true
}
}
public cmd_respawn(id)
{
if(allow_respawn)
{
if(!is_user_alive(id))
{
zp_respawn_user(id, ZP_TEAM_ZOMBIE)
return PLUGIN_HANDLED
}
}
else if(!allow_respawn)
{
zp_colored_print(id, "!g[ZP] !yO comando !t/reviver !yso e valido em modo de infeccao.")
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
stock zp_colored_print(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4") // Chat Verde
replace_all(msg, 190, "!y", "^1") // Chat Normal
replace_all(msg, 190, "!t", "^3") // Chat Do Time Tr=Vermelho Ct=Azul Spec=Branco
if (id) players[0] = id; else get_players(players, count, "ch")
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
[D]etonado[R]- Moderador
- Mensagens : 10
Ammos Pakcs : 4719
Honra : 24
Data de inscrição : 22/10/2013
Tópicos semelhantes
» [Plugin] zp_classe_infect
» [TuT] Proteger Plugin
» [PLUGIN] ::: *Placar New :::*
» [Plugin] zp_classe_frost
» [Plugin] Arcanjo para 5.0
» [TuT] Proteger Plugin
» [PLUGIN] ::: *Placar New :::*
» [Plugin] zp_classe_frost
» [Plugin] Arcanjo para 5.0
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|