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

Subplugin Submission ZP Bank


Post New Thread Reply   
 
Thread Tools Display Modes
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 - 14339 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
ifx
Senior Member
Join Date: Apr 2008
Old 11-07-2008 , 07:17   Re: ZP Bank
Reply With Quote #2

can you add mysql support for multiple servers?

thanks!
ifx is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 11-07-2008 , 09:15   Re: ZP Bank
Reply With Quote #3

lol this was my idea too.
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
ComeTryTry
New Member
Join Date: Nov 2008
Location: Singapore
Old 11-07-2008 , 10:01   Re: ZP Bank
Reply With Quote #4

This is cool but is this for player or admin usuage ? Or is it for both
ComeTryTry is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 11-07-2008 , 10:03   Re: ZP Bank
Reply With Quote #5

both.
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
NestleMilo
BANNED
Join Date: May 2008
Location: http://zombieplague.org
Old 11-07-2008 , 10:08   Re: ZP Bank
Reply With Quote #6

Who releases something like this to the public lol.. I had this on my server [custom coded] for a while now.
NestleMilo is offline
shadowski
Senior Member
Join Date: Feb 2007
Old 11-07-2008 , 10:43   Re: ZP Bank
Reply With Quote #7

NestleMilo sharing is carring
shadowski is offline
shadowski
Senior Member
Join Date: Feb 2007
Old 11-07-2008 , 11:36   Re: ZP Bank
Reply With Quote #8

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?
shadowski is offline
The-Disaster
Member
Join Date: Jul 2008
Old 11-07-2008 , 18:21   Re: ZP Bank
Reply With Quote #9


how can i Configure the sql for the multiple servers ?
__________________
The-Disaster is offline
Old 11-08-2008, 02:45
Fry!
This message has been deleted by Fry!.
ifx
Senior Member
Join Date: Apr 2008
Old 11-08-2008 , 02:46   Re: ZP Bank
Reply With Quote #10

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"
ifx is offline
Reply


Thread Tools
Display Modes

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 15:47.


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