[Pitanje] ZP nagrada
Results 1 to 6 of 6

Thread: ZP nagrada

  1. #1
    Junior Member Array
    Join Date
    Nov 2016
    Karma
    0

    Default ZP nagrada

    Ima li neko plugin ili sta vec kad si human i kad ubijes npr 5 zombia dobije 50 armora kao nagradu ? vidjao sam to na serverima ali ne mogu naci

  2. #2
    Senior Member Array
    Join Date
    May 2014
    Location
    Mamica
    Karma
    0

    Default

    Code:
    /* Plugin generated by AMXX-Studio */
    
    #include <amxmodx>
    #include <amxmisc>
    #include <fun>
    #include <zombieplague>
    
    #define PLUGIN "New Plug-In"
    #define VERSION "1.0"
    #define AUTHOR "author"
    
    new ukupno_ubistva[33];
    
    public plugin_init() {
    	register_plugin(PLUGIN, VERSION, AUTHOR)
    	
    	register_event("DeathMsg", "Mrtav", "a");
    }
    	
    public Mrtav()
    {
    	new napadac = read_data(1);
    	new id = read_data(2);
    	
    	ukupno_ubistva[napadac]++;
    	
    	if(!is_user_alive(id))
    		ukupno_ubistva[id] = 0;
    		
    	if(zp_get_user_zombie(napadac))
    		return PLUGIN_CONTINUE;
    	else
    	{
    		if(ukupno_ubistva[napadac] == 5)
    			set_user_armor(napadac, get_user_armor(napadac) + 50);
    	}
    	
    	return PLUGIN_CONTINUE;
    }
    Najprostije moguce
    Last edited by Ognjen7; 12-11-2017 at 14:15.
    BaseBuilder Mod + VIP System + New BonusBox System - [ |||||||||| - 100% ] - Zavrseno

    Javite mi se na PM za test IP

  3. #3
    Junior Member Array
    Join Date
    Nov 2016
    Karma
    0

    Default

    al da pise kad ubijes koliko ti treba do cilja da dobijes 50 armor

  4. #4
    Junior Member Array
    Join Date
    Nov 2016
    Karma
    0

    Default

    Hitno mi je potrebna pomoc ...
    treba mi nesto slicno ovome
    https://www.youtube.com/watch?v=Kx-X26Dt7DA&t=27s

    ovakav menu i ovaj text ispod radara , ovo sam skino ali se ne mozze editovat

    molim da neko pomogne

  5. #5
    Senior Member Array
    Join Date
    May 2014
    Location
    Mamica
    Karma
    0

    Default

    Evo:

    Code:
    #include <amxmodx>
    #include <amxmisc>
    #include <fun>
    #include <zombieplague>
    #include <colorchat>
    
    #define PLUGIN "New Plug-In"
    #define VERSION "1.0"
    #define AUTHOR "author"
    
    new ukupno_ubistva[33];
    
    new do_cilja[33] = 5;
    
    public plugin_init() {
    	register_plugin(PLUGIN, VERSION, AUTHOR)
    	
    	register_event("DeathMsg", "Mrtav", "a");
    }
    	
    public Mrtav()
    {
    	new napadac = read_data(1);
    	new id = read_data(2);
    	
    	do_cilja[napadac]--;
    	
    	if(zp_get_user_zombie(napadac))
    		return PLUGIN_CONTINUE;
    	else
    		ColorChat(napadac, GREEN, "[Bonus] ^1Treba ti jos ^3%i ^1ubistva da bi dobio dodatnih 50 AP", do_cilja[napadac]);
    	
    	ukupno_ubistva[napadac]++;
    	
    	if(!is_user_alive(id))
    		do_cilja[id] = 5;
    	
    	if(!is_user_alive(id))
    		ukupno_ubistva[id] = 0;
    		
    	if(zp_get_user_zombie(napadac))
    		return PLUGIN_CONTINUE;
    	else
    	{
    		if(ukupno_ubistva[napadac] == 5)
    			set_user_armor(napadac, get_user_armor(napadac) + 50);
    	}
    	
    	return PLUGIN_CONTINUE;
    }
    Trebalo bi da radi, a to za radar vec sam ti jednom rekao moras da potrazis po forumu , Miljan je lepo objasnio kako da namestis HUD da bi ti pisalo ispod radara, nesto moras I sam da uradis
    BaseBuilder Mod + VIP System + New BonusBox System - [ |||||||||| - 100% ] - Zavrseno

    Javite mi se na PM za test IP

  6. #6
    Junior Member Array
    Join Date
    Nov 2016
    Karma
    0

    Default

    pratio sam ga ali ne razumijem kako eto ako moze neko da mi posalje gotov posto ja nmg da nadjem

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •