• Real-Arena
  • Contact
  • Cash Money
  • Prezintă-te
  • Counter-Strike
  • Metin2
  • Minecraft
  • SA:MP
  • [SHOP] Steam, Gift, Cards, Items
  • Giveaway STEAM
  • AcasaAcasa  IndexIndex  Regulament  Cont Premium  Ultimele imaginiUltimele imagini  CăutareCăutare  ÎnregistrareÎnregistrare  ConectareConectare  

    Distribuiţi
     

     Lives 0.1.1

    Vezi subiectul anterior Vezi subiectul urmator In jos 
    AutorMesaj
    [RLA] # HazZaRD
    Utilizator Premium
    [RLA] # HazZaRD
    Dark Addicted
    Mesaje : 541
    Lives 0.1.1 Empty
    MesajSubiect: Lives 0.1.1   
    Lives 0.1.1 I_icon_minitimeDum 30 Noi 2014, 22:46

    Descriere: acest plugin le permite playerilor sa se respawneze ( recomandat pentru deathrun ) luandule o viata, ca sa primiti o viata trebuie sa omorit un alt jucator !

    Descarcare: http://forums.alliedmods.net/showthread.php?t=228852

    Nume: Lives
    Versiune: 0.0.7
    Link oficial: http://forums.alliedmods.net/showthread.php?t=228852

    Instalare:
    1. Fisierul lives.sma il puneti in addons/amxmodx/scripting
    2. Fisierul lives.amxx il puneti in addons/amxmodx/plugins
    3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:


    Cod:

    lives.amxx



    Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg):


    Cod:

    mp_enable_lives 1/0
    mp_default_lives 0


    Comenzi administrative (se tasteaza in consola si trebuie sa fiti administrator):


    Cod:

    amx_lives <Target> Amount


    Comenzi publice (se tasteaza in joc prin apasarea tastei Y):
    /respawn - Te invie dar iti ia o viata

    pentru cei ce vor sa vada sursa fara sa mai downloandeze toate resursele :


    Cod:
    /*   ReLL3aSe @ 2013 Plugin Comply With GNU General Public License   Lives is free software: you can redistribute it and/or modify   it under the terms of the GNU General Public License as published by   the Free Software Foundation, either version 3 of the License, or   (at your option) any later version.   Under no circumstances are you allowed to redistribute and/or modify   it claming that you are the original author of such plugin/modification.   Lives is distributed in the hope that it will be useful,   but WITHOUT ANY WARRANTY; without even the implied warranty of   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   GNU General Public License for more details.   You should have received a copy of the GNU General Public License   along with this program.  If not, see <http://www.gnu.org/licenses/>.*/#include <amxmodx>#include <hamsandwich>#include <amxmisc>#include <chatcolor>/*  Life`s value !  */new Lives[33];/* Life Cvar Enable */new g_Life;/* When client connect default lifes value ? */new g_default_lives;/* Vip having infinite lifes ? */new g_vip_enable;/* Vip having a number of lives ! */new g_vip_lives;/*  Plugin Info  */new const PLUGIN [] = "Lives Plugin !";new const VERSION [] = "0.0.6";new const AUTHOR [] = "LordOfNothing";/* Plugin Init */public plugin_init(){   register_plugin(PLUGIN,VERSION,AUTHOR);      g_Life = register_cvar("mp_enable_lives","1");   g_vip_enable = register_cvar("mp_vip_lives_enable","1");   g_vip_lives = register_cvar("mp_vip_lives","100");   g_default_lives = register_cvar("mp_default_lives","0");      RegisterHam(Ham_Killed, "player", "C_Kill" ,1);   RegisterHam(Ham_Spawn, "player", "C_Vip" ,1);      register_clcmd("say /respawn","C_Respawn");   register_clcmd("say_team /respawn","C_Respawn");      register_clcmd("say /lives","C_Lifes");      register_concmd("amx_lives", "cmd_lives", ADMIN_KICK, "<target> <amount>");   register_dictionary_colored("lives.txt");}public cmd_lives(id, level, cid){   if(!cmd_access(id, level, cid, 3))      return PLUGIN_HANDLED      new target[32], amount[21]      read_argv(1, target, 31)   read_argv(2, amount, 20)      new player = cmd_target(id, target, 8)      if(!player)      return PLUGIN_HANDLED      new admin_name[32], player_name[32]   get_user_name(id, admin_name, 31)   get_user_name(player, player_name, 31)      new expnum = str_to_num(amount)   client_print_color(0, Red,"[LIVES]^4%L",0, "ADMIN_COMMAND", admin_name, amount, player_name)      Lives[player] = expnum   return PLUGIN_CONTINUE}public C_Kill(victim, attacker) {    if(get_pcvar_num(g_Life) && is_user_alive(attacker))    {       Lives[attacker] += 1;       client_print_color(attacker, Red,"[LIVES] ^4%L",attacker,"GOT_LIFE");    } } public C_Respawn(id){   if(get_pcvar_num(g_Life) && !is_user_alive(id))   {      if(Lives[id] >= 1)      {         Lives[id] -= 1;         ExecuteHam( Ham_CS_RoundRespawn, id );         client_print_color(id, Red, "[LIVES] ^4%L",id,"RESPAWN");      }   }   }public C_Lifes(id){   if(get_pcvar_num(g_Life))      client_print_color(id, Red, "[LIVES] ^4%L",id,"LIVES",Lives[id]);   }public C_Vip(id){   if(!get_pcvar_num(g_vip_enable) || !get_pcvar_num(g_Life))      return PLUGIN_HANDLED   if(get_user_frags(id) & ADMIN_IMMUNITY)   {      Lives[id] = get_pcvar_num(g_vip_lives);      return PLUGIN_CONTINUE   }}public client_connect(id){   if(get_pcvar_num(g_Life))      Lives[id] = get_pcvar_num(g_default_lives);}/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang2057{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }*/


    Ai o comunitate, dar te-ai saturat de probleme? Vino pe Real-Arena.
    Sus In jos
     

    Lives 0.1.1

    Vezi subiectul anterior Vezi subiectul urmator Sus 
    Pagina 1 din 1

    Real-Arena România :: Jocuri - Tutoriale şi resurse :: Counter-Strike 1.6 :: Plugin-uri-