AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP 5.0][1.2.0] Ammo Packs Bank (https://forums.alliedmods.net/showthread.php?t=173685)

Excalibur.007 12-09-2011 06:50

[ZP 5.0][1.2.0] Ammo Packs Bank
 
2 Attachment(s)
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.

Snaker beatter 12-09-2011 07:22

Re: [ZP 5.0][1.0.0] Ammo Packs Bank
 
Thanks will test

EDIT:

zp_bank_sql works on zp5.0

Excalibur.007 12-09-2011 07:51

Re: [ZP 5.0][1.0.0] Ammo Packs Bank
 
Quote:

Originally Posted by Snaker beatter (Post 1610162)
Thanks will test

EDIT:

zp_bank_sql works on zp5.0

zp_bank_sql? Plugin or the SQL that's inside this bank.

Snaker beatter 12-09-2011 08:07

Re: [ZP 5.0][1.0.0] Ammo Packs Bank
 
theirs already a plugin for zp4.3 ZP Bank Sql http://forums.alliedmods.net/showthr...light=Bank+sql

Excalibur.007 12-09-2011 08:22

Re: [ZP 5.0][1.0.0] Ammo Packs Bank
 
Quote:

Originally Posted by Snaker beatter (Post 1610186)
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 (Post 1572755)
This plugin is dead, download another bank.


Snaker beatter 12-09-2011 08:24

Re: [ZP 5.0][1.0.0] Ammo Packs Bank
 
But it works fine on me and i already saved 2000 ammopacks in their so... :oops:

Nick Haldem 12-09-2011 08:42

Re: [ZP 5.0][1.0.0] Ammo Packs Bank
 
I must deposit and withdraw ammopack or it will save atutomatically? And how it will save?

Excalibur.007 12-09-2011 08:51

Re: [ZP 5.0][1.0.0] Ammo Packs Bank
 
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.

Snaker beatter 12-09-2011 09:10

Re: [ZP 5.0][1.0.0] Ammo Packs Bank
 
Owh i will use this, have auto save!

Excalibur.007 12-09-2011 09:12

Re: [ZP 5.0][1.0.0] Ammo Packs Bank
 
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.


All times are GMT -4. The time now is 16:36.

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