Raised This Month: $ Target: $400
 0% 

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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, 3911 views)

Last edited by Excalibur.007; 12-16-2011 at 20:00. Reason: Updated
Excalibur.007 is offline
 



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 22:43.


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