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

Subplugin Submission ZP Bank


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
G-Dog
Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
Old 11-07-2008 , 07:01   ZP Bank
Reply With Quote #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*
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
Attached Files
File Type: sma Get Plugin or Get Source (zp_bank.sma - 14359 views - 25.6 KB)
__________________
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
G-Dog is offline
Send a message via AIM to G-Dog
 



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 14:38.


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