AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission ZP Bank (https://forums.alliedmods.net/showthread.php?t=80203)

G-Dog 11-07-2008 07:01

ZP Bank
 
2 Attachment(s)
ZP Bank
(allows saving of ammo packs)


by Random1 a.k.a. G-Dog


Description : Give people the ability to save their ammo packs to a bank account via a say command "deposit <amount>", and to get them back out of the account later via the command "withdraw <amount>".

Commands/Cvars:
PHP Code:

*say commands*
depositsendstore <amount/all>                //deposites stated amount in bank account
            
withdrawtakeretrieve <amount/all>            //retrieves stated amount from bank account

mybankaccountbank <blank/name of person>    //if second parameter is left blank, states how many ap you have in your account
                                                //if second parameter is specified it attempts to give a status on the said person's account

upgrade account                                    //will give a warning about what a advanced account does, after which person must say "advanced account" again to advance



*server commands*
zp_give_packs <steamid not name> <amount>    //gives ammo packs even if person not in game
zp_bank_amount <name/steamid>                //same as bank say command, but works from server console
zp_reset_bank <time>                         //will prune database by time based in days. time 0 = clean all 



*cvars copy/paste into your zombieplague.cfg file*
zp_bank 1                            //plugin on or off?
zp_bank_auto 0                        //0 = no auto save, 1 = auto save, 2 = auto save + auto withdraw all on connect
zp_bank_blockstart 0                //if set we strip ammo packs zp gives when client first connects if they have an open bank account
zp_bank_upgradable 1                //advanced accounts availalbe?
zp_bank_cost 1000                    //cost to advance an account
zp_bank_interest 0.03                //interest earned every x(zp_bank_clock) minutes
zp_bank_clock 60                    //think is done in 1 minute intervals so 60 = 1 hr
zp_bank_transfee 3                    //fee applied each time ammo packs are stored 

Edit: Though I stated I would not support this after another version was posted by danielkza I'll at least update with a more advanced version I previously used.

both files were replaced by 1 that has a define at top for nvault or sql, defaults to nvault
2478 views of original
1407 views of beta sql
7117 views of 4.3

alternatively a login system version can be found here

ifx 11-07-2008 07:17

Re: ZP Bank
 
can you add mysql support for multiple servers?

thanks!

Fry! 11-07-2008 09:15

Re: ZP Bank
 
lol this was my idea too. :D

ComeTryTry 11-07-2008 10:01

Re: ZP Bank
 
This is cool but is this for player or admin usuage ? Or is it for both

Fry! 11-07-2008 10:03

Re: ZP Bank
 
both.

NestleMilo 11-07-2008 10:08

Re: ZP Bank
 
Who releases something like this to the public lol.. I had this on my server [custom coded] for a while now.

shadowski 11-07-2008 10:43

Re: ZP Bank
 
NestleMilo sharing is carring

shadowski 11-07-2008 11:36

Re: ZP Bank
 
could you also add admin commands like to check players in bank ammo packs also to give ammo packs and subtract ammo packs from players?

The-Disaster 11-07-2008 18:21

Re: ZP Bank
 

how can i Configure the sql for the multiple servers ?

ifx 11-08-2008 02:46

Re: ZP Bank
 
G-Dog, many thanks for releasing sql version. This is awesome!

The-Disaster: Use this CVARS

zp_sql_host ""
zp_sql_user ""
zp_sql_pass ""
zp_sql_db ""
zp_sql_persistence "0"


All times are GMT -4. The time now is 18:04.

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