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

Subplugin Submission [ZP 5.0][1.2.0] Ammo Packs Bank


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 12-09-2011 , 06:50   [ZP 5.0][1.2.0] Ammo Packs Bank
Reply With Quote #1

I know there's alot, this is specially made for Zombie Plague 5.0

Features:
  • Auto-Save & Auto-Load
  • Bank limit & block starting ammo packs
  • Supports nVault & SQLx
  • Donate function
  • Bank Help that uses MOTD
  • Supports pruning in days(1.2.0 and above)

CVars:
  • zp_bank_auto_save "1" - Server will auto save when client disconnect and map changes
  • zp_bank_auto_load "1" - Server will auto load when client has a valid STEAM ID
  • zp_bank_limit "1000" - Limits the maximum amount of ammo packs in one bank storage
  • zp_bank_block_start "1" - Blocks starting ammo packs
  • zp_bank_advertise_interval "60.0" - Every X seconds for bank help chat.

Commands:
  • /withdraw, withdraw
    Code:
    /withdraw 100
    /withdraw all
  • /deposit, deposit
    Code:
    /deposit 100
    /deposit all
  • /donate, donate
    Code:
    /donate 100 NoobBeggar
  • /bank
  • /bankhelp

Admin Commands(Console):[*]bank_reset <days>

Changelog:
  • 1.0.0 - Initial release
  • 1.1.0 - ML Support
  • 1.1.5 - CVars to enable auto save and auto load
  • 1.2.0 - Added pruning function
    - Updated translations in addons folder & added spanish

Language added in ML:
  • en
  • ru
  • fr
  • bp
  • ms
  • pt
  • es

Changing MOTD text
At source file, search(Ctrl+F)
PHP Code:
msg[SIZE 1
then you should see this
PHP Code:
len += format(msg[len], SIZE len"<html><body>")
len += format(msg[len], SIZE len"<p>[BANK COMMANDS]<br/>")
len += format(msg[len], SIZE len"------------------------------------------------------------------------</p>")
len += format(msg[len], SIZE len"/withdraw <amount> or /withdraw all<br/>")
len += format(msg[len], SIZE len"- Withdraws an amount of ammo packs from the bank storage</p>")
len += format(msg[len], SIZE len"------------------------------------------------------------------------</p>")
len += format(msg[len], SIZE len"/deposit <amount> or /deposit all</p>")
len += format(msg[len], SIZE len"------------------------------------------------------------------------</p>")
len += format(msg[len], SIZE len"- Deposits an amount of ammo packs to the bank storage</p>")
len += format(msg[len], SIZE len"- Checks your bank status</p>")
len += format(msg[len], SIZE len"------------------------------------------------------------------------</p>")
len += format(msg[len], SIZE len"/donate <amount> <player's name> </p>")
len += format(msg[len], SIZE len"- Donates an amount of ammo packs to the specified player</p>")
len += format(msg[len], SIZE len"------------------------------------------------------------------------</p>")
len += format(msg[len], SIZE len"Note: Commands can be entered without ^"/^" infront.</p>")
len += format(msg[len], SIZE len"</body></html>")
show_motd(playermsg"Bank Help"
Edit this to the text you want.

Notes:
  • SQLx isn't fully tested but nVault is.
  • For /donate, you do not have to type the whole name. It's similar to amx_slap/slay. Donating to bots is disabled.
  • Addition ammo packs are returned if you deposited and the bank is more than 1000. Also applies to donating.

Want to contribute?
This bank needs more translations. CLICK HERE TO POST YOUR TRANSLATIONS HERE.
Attached Files
File Type: zip addons.zip (7.0 KB, 3907 views)

Last edited by Excalibur.007; 12-16-2011 at 20:00. Reason: Updated
Excalibur.007 is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 12-09-2011 , 07:22   Re: [ZP 5.0][1.0.0] Ammo Packs Bank
Reply With Quote #2

Thanks will test

EDIT:

zp_bank_sql works on zp5.0
__________________

Last edited by Snaker beatter; 12-09-2011 at 07:23.
Snaker beatter is offline
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 12-09-2011 , 07:51   Re: [ZP 5.0][1.0.0] Ammo Packs Bank
Reply With Quote #3

Quote:
Originally Posted by Snaker beatter View Post
Thanks will test

EDIT:

zp_bank_sql works on zp5.0
zp_bank_sql? Plugin or the SQL that's inside this bank.
Excalibur.007 is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 12-09-2011 , 08:07   Re: [ZP 5.0][1.0.0] Ammo Packs Bank
Reply With Quote #4

theirs already a plugin for zp4.3 ZP Bank Sql http://forums.alliedmods.net/showthr...light=Bank+sql
__________________
Snaker beatter is offline
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 12-09-2011 , 08:22   Re: [ZP 5.0][1.0.0] Ammo Packs Bank
Reply With Quote #5

Quote:
Originally Posted by Snaker beatter View Post
theirs already a plugin for zp4.3 ZP Bank Sql http://forums.alliedmods.net/showthr...light=Bank+sql
I guess there isn't any updates for that

And this
Quote:
Originally Posted by Epmak View Post
This plugin is dead, download another bank.
Excalibur.007 is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 12-09-2011 , 08:24   Re: [ZP 5.0][1.0.0] Ammo Packs Bank
Reply With Quote #6

But it works fine on me and i already saved 2000 ammopacks in their so...
__________________
Snaker beatter is offline
Nick Haldem
Senior Member
Join Date: Jun 2011
Location: Moldova
Old 12-09-2011 , 08:42   Re: [ZP 5.0][1.0.0] Ammo Packs Bank
Reply With Quote #7

I must deposit and withdraw ammopack or it will save atutomatically? And how it will save?
__________________
Your server is empty? Visit our webpage http://boost.dyc.lv/ and make it full!!!
Nick Haldem is offline
Send a message via Skype™ to Nick Haldem
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 12-09-2011 , 08:51   Re: [ZP 5.0][1.0.0] Ammo Packs Bank
Reply With Quote #8

It will automatically save when:
  • Client uses deposit or withdraw successfully
  • Client disconnect
  • Server changes map

And even if you had your ammo packs in your inventory(not bank) it will still add it to the bank when he disconnect or map changes.

Last edited by Excalibur.007; 12-09-2011 at 08:55.
Excalibur.007 is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 12-09-2011 , 09:10   Re: [ZP 5.0][1.0.0] Ammo Packs Bank
Reply With Quote #9

Owh i will use this, have auto save!
__________________
Snaker beatter is offline
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 12-09-2011 , 09:12   Re: [ZP 5.0][1.0.0] Ammo Packs Bank
Reply With Quote #10

I also loved the way I've done the color chat since it uses ZP's one.

Forgotten to add 1 CVar(zp_bank_advertise_interval) on the thread.

Last edited by Excalibur.007; 12-09-2011 at 09:14.
Excalibur.007 is offline
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 07:38.


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