Author
|
Message
|
Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
|
11-07-2008
, 07:01
ZP Bank
|
#1
|
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*
deposit, send, store <amount/all> //deposites stated amount in bank account
withdraw, take, retrieve <amount/all> //retrieves stated amount from bank account
mybank, account, bank <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
__________________
If at first you don't succeed, then skydiving isn't for you.
Last edited by G-Dog; 07-22-2011 at 14:51.
Reason: minor update
|
|
|
|