Raised This Month: $51 Target: $400
 12% 

|Solved| [ZP] Bank


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
amir saiaoud
Senior Member
Join Date: May 2015
Location: essaouira , maroc
Old 08-15-2015 , 16:13   |Solved| [ZP] Bank
Reply With Quote #1

Already Solved By me
__________________

Last edited by amir saiaoud; 10-25-2015 at 05:29. Reason: Solved
amir saiaoud is offline
Send a message via Skype™ to amir saiaoud
Depresie
Veteran Member
Join Date: Nov 2013
Old 08-22-2015 , 09:51   Re: [ZP] Bank
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?p=1558322

SEARCH FIRST !
Depresie is offline
amir saiaoud
Senior Member
Join Date: May 2015
Location: essaouira , maroc
Old 08-23-2015 , 08:43   Re: [ZP] Bank
Reply With Quote #3

this plugin not for zpa
__________________
amir saiaoud is offline
Send a message via Skype™ to amir saiaoud
Depresie
Veteran Member
Join Date: Nov 2013
Old 08-23-2015 , 17:27   Re: [ZP] Bank
Reply With Quote #4

if it works on 4.3 it will work on zpa
Depresie is offline
amir saiaoud
Senior Member
Join Date: May 2015
Location: essaouira , maroc
Old 08-23-2015 , 18:15   Re: [ZP] Bank
Reply With Quote #5

this is not what i want but thank's any way ^^
__________________
amir saiaoud is offline
Send a message via Skype™ to amir saiaoud
happy_2012
Senior Member
Join Date: Aug 2012
Old 08-29-2015 , 22:45   Re: [ZP] Bank
Reply With Quote #6

Try this simple bank system:
PHP Code:
#include < amxmodx >
#include < nvault >
#include < zp50_ammopacks >

new g_iAmmoPacksVault;

public 
plugin_init()
{
    
register_plugin("[ZP] Sub: Bank"ZP_VERSION_STRING"funkyfresh");
    
    
register_cvar("zp_bank_version"ZP_VERSION_STRINGFCVAR_SERVER FCVAR_SPONLY);
    
set_cvar_string("zp_bank_version"ZP_VERSION_STRING);
}

public 
plugin_precache()
{
    
OpenAmmoPacksVault();
}

public 
plugin_end()
{
    
CloseAmmoPacksVault();
}

public 
client_disconnect(Index)
{
    
SavePlayerAmmoPacks(Index);
}

public 
client_putinserver(Index)
{
    
LoadPlayerAmmoPacks(Index);
}

OpenAmmoPacksVault()
{
    
g_iAmmoPacksVault nvault_open("zp_ammopacks_vault");
    
    if( 
g_iAmmoPacksVault == INVALID_HANDLE )
        
set_fail_state("[ZP] Error: Could not open ammopacks vault");
}

CloseAmmoPacksVault()
{
    new 
Index;
    for(
Index 1Index <= get_maxplayers(); Index++)
    {
        if( !
is_user_connected(Index) )
            continue;
        
        
SavePlayerAmmoPacks(Index);
    }
    
    
nvault_close(g_iAmmoPacksVault);
}

SavePlayerAmmoPacks(Index)
{
    static 
szAuthID[36], szAmmoPacks[7];
    
get_user_authid(IndexszAuthIDcharsmax(szAuthID));
    
    
formatex(szAmmoPackscharsmax(szAmmoPacks), "%i"zp_ammopacks_get(Index));
    
nvault_set(g_iAmmoPacksVaultszAuthIDszAmmoPacks);
}

LoadPlayerAmmoPacks(Index)
{
    static 
szAuthID[36];
    
get_user_authid(IndexszAuthIDcharsmax(szAuthID));
    
    
zp_ammopacks_set(Indexnvault_get(g_iAmmoPacksVaultszAuthID));
    return 
zp_ammopacks_get(Index);

__________________
Discord contacts:
I rarely look at private messages here, but I am very active on Discord!
happy_2012 is offline
amir saiaoud
Senior Member
Join Date: May 2015
Location: essaouira , maroc
Old 08-30-2015 , 05:41   Re: [ZP] Bank
Reply With Quote #7

SOLved By Me Thnk's Any Way

Last edited by amir saiaoud; 10-25-2015 at 05:30.
amir saiaoud is offline
Send a message via Skype™ to amir saiaoud
Amine Belokda
Senior Member
Join Date: Oct 2015
Location: ML_NOT_FOUND
Old 06-19-2016 , 01:50   Re: |Solved| [ZP] Bank
Reply With Quote #8

i have bank menu + auto save ammopack in system zp ( all version )
__________________
Amine Belokda is offline
Send a message via MSN to Amine Belokda
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode