Melhores Plugins
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.
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

Visitantes

Blog Melhores Plugins

[Plugin] Reviver 100% sem bugs

2 participantes

Ir para baixo

[Plugin] Reviver 100% sem bugs Empty [Plugin] Reviver 100% sem bugs

Mensagem por [D]etonado[R] Sáb Nov 09 2013, 09:19

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();
                        }
                }
        }
}
Creditos: [P]erfec[T] [S]cr[@]s[H]
[D]etonado[R]
[D]etonado[R]
Moderador
Moderador

Mensagens : 10
Ammos Pakcs : 4719
Honra : 24
Data de inscrição : 22/10/2013

Ir para o topo Ir para baixo

[Plugin] Reviver 100% sem bugs Empty Re: [Plugin] Reviver 100% sem bugs

Mensagem por MtsLa!<3.L Sáb Nov 09 2013, 09:31

Boaa !
MtsLa!<3.L
MtsLa!<3.L
Administrador
Administrador

Mensagens : 128
Ammos Pakcs : 18287
Honra : 6
Data de inscrição : 05/10/2013

https://melhoresplugins.forumeiros.com

Ir para o topo Ir para baixo

Ir para o topo

- Tópicos semelhantes

 
Permissões neste sub-fórum
Não podes responder a tópicos