Results 1 to 9 of 9
  1. #1
    Member Array
    Join Date
    Mar 2017
    Karma
    0

    Default Treba mi AutoSaveBANK!

    Probao sam sve auto save banke i nijedna ne sacuva ammo packs jel moze neko da mi da za ZP

  2. #2

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

    Default

    I meni treba tako ness usput daxter ne radi ta ...
    BaseBuilder Mod + VIP System + New BonusBox System - [ |||||||||| - 100% ] - Zavrseno

    Javite mi se na PM za test IP

  4. #4
    Junior Member Array
    Join Date
    Oct 2015
    Location
    Ru
    Karma
    0

    Default

    Quote Originally Posted by Ognjen7 View Post
    I meni treba tako ness usput daxter ne radi ta ...
    Javi mi se na fb-Basta

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

    Default

    Ni jedna ne radi sve sam probao sve koje postoje , znaci ni jedna ne radi ...
    BaseBuilder Mod + VIP System + New BonusBox System - [ |||||||||| - 100% ] - Zavrseno

    Javite mi se na PM za test IP

  6. #6
    Moderator Array klipica's Avatar
    Join Date
    Apr 2010
    Location
    lk-net.com
    Karma
    26

    Default

    Mozda je problem do tebe onda.
    Code:
    #YoMama {
        width: 200%;
        overflow: visible;
    }

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

    Default

    Koristim ZP 4.3 Fix5a ... Znaci sve sam probao, nema ni jedna da sam izostavio, ni jedna ne radi, ubacim i megastormovu da mi 50 ammo packa istrosim na 6 ammo I onda kad promenim mapu opet 50 ...

    I ne mogu zbog toga vec 4 dana da otvorim server
    Last edited by Ognjen7; 23-03-2017 at 21:38.
    BaseBuilder Mod + VIP System + New BonusBox System - [ |||||||||| - 100% ] - Zavrseno

    Javite mi se na PM za test IP

  8. #8
    Member Array
    Join Date
    Mar 2017
    Karma
    0

    Default

    Ali brate neki kazu sa nVault posle neko vreme ammo ga snema..

  9. #9
    Member Array
    Join Date
    Jan 2017
    Location
    Proffessional Coder.
    Age
    33
    Karma
    0

    Default

    Probaj Ovako:
    PHP Code:
    #include <amxmodx>
    #include <fakemeta>
    #include <zombieplague>
    #include <nvault>

    new g_saveg_ammo[33], g_ammo_can_save[33]
    new 
    cvar_save_in

    public plugin_init() {
        
    register_plugin("AutoSave Bank""1.0""Nexon#")

        
    register_event("DeathMsg","event_deathmsg","a")
        
    register_forward(FM_PlayerPreThink"fw_PlayerPreThink")

        
    cvar_save_in register_cvar("zp_ammo_save_in""2")
        
    // Na cemu ce ammo biti sacuvan? 
            // 0 = na nick / 1 = na ip / 2 = na steamID


        
    g_save nvault_open("feshtazm_ammo_save")
    }

    public 
    zp_user_infected_post(idinfector) {
        if (
    g_ammo_can_save[infector])
            
    Save_Ammo_date(infector)
        
        if (
    g_ammo_can_save[id])
            
    Save_Ammo_date(id)
    }



    public 
    event_deathmsg() {
        new 
    killer read_data(1)
        new 
    victim read_data(2)

        if (!
    killer && !victim)
            return 
    PLUGIN_CONTINUE;

        if (
    g_ammo_can_save[killer])
            
    Save_Ammo_date(killer)
                


        return 
    PLUGIN_CONTINUE;
    }

    public 
    fw_PlayerPreThink(id) {
        if (
    g_ammo_can_save[id]) {
            new 
    ammo_packs zp_get_user_ammo_packs(id)
            
    g_ammo[id] = ammo_packs
        
    }

        return 
    FMRES_IGNORED;
    }

    public 
    now_can_save(id) {
        
    Load_Ammo_date(id)
        
    set_task(0.5"can_save_true"id)
    }

    public 
    can_save_true(id)
        
    g_ammo_can_save[id] = true

    public Save_Ammo_date(id) {
        new 
    vaultkey[64], vaultdata[256]

        switch (
    get_pcvar_num(cvar_save_in)) {
            case 
    0
            {
                new 
    name[33];
                
    get_user_name(id,name,32)
                
                
    format(vaultkey63"%s-/"name)
            }
            case 
    1
            {
                new 
    player_ip[33]
                
    get_user_ip(idplayer_ip32);

                
    format(vaultkey63"%s-/"player_ip)
            }
            case 
    2:
            {
                new 
    AuthID[33];
                
    get_user_authid(idAuthID32);
                
                
    formatex(vaultkey64"%s-/"AuthID);
            }
        }
        
    format(vaultdata255"%i#"g_ammo[id])
        
        
    nvault_set(g_savevaultkeyvaultdata)
        return 
    PLUGIN_CONTINUE;
    }

    public 
    Load_Ammo_date(id) {
        new 
    vaultkey[64], vaultdata[256]
        switch (
    get_pcvar_num(cvar_save_in)) 
        {
            case 
    0:
            {
                new 
    name[33];
                
    get_user_name(id,name,32)
                
                
    format(vaultkey63"%s-/"name)
            }
            case 
    1:
            {
                new 
    player_ip[33]
                
    get_user_ip(idplayer_ip32);

                
    format(vaultkey63"%s-/"player_ip)
            }
            case 
    2:
            {
                new 
    AuthID[33];
                
    get_user_authid(idAuthID32);
                
                
    formatex(vaultkey64"%s-/"AuthID);
            }
        }

        
    format(vaultdata255"%i#"g_ammo[id])
        
        
    nvault_get(g_savevaultkeyvaultdata255)
        
    replace_all(vaultdata255"#"" ")
        
        new 
    playammo[32]
        
    parse(vaultdataplayammo31)
        
    g_ammo[id] = str_to_num(playammo)
        
        
    set_ammo(id)
        
        return 
    PLUGIN_CONTINUE;
    }

    public 
    set_ammo(id) {
        
    zp_set_user_ammo_packs(idg_ammo[id])
        
    client_print(idprint_chat"Tvoji ammo pakovi u banci su  :  %d "g_ammo[id])

    Last edited by Nexon369; 24-03-2017 at 17:21.


    Kontakt:
    Ovde na forumu: [Klik]
    Na Facebook: [Klik]
    E-mail: nexon.gaming97@gmail.com

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
  •