Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Bank - with Autosave : Update Again - v1.0


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
redomin8
Member
Join Date: Feb 2005
Old 12-31-2008 , 06:17   [ZP] Bank - with Autosave : Update Again - v1.0
Reply With Quote #1

THIS PLUGIN DOES NOT WORK WITH NON-STEAM. Get with the program, spend $10 dollars buying cstrike, and then you can update hlds and amxmodx.

Update2:
A few more bug fixes, donate should work (dont have 2 ppl to check)
Be sure to update this plugin if you use Zombie XP. (otherwise users can buy levels while in spending spree)

Update:
Added save event on round start, hope this fixes some of the issues people have been having
Lots of bug fixes (take and give with spendingspree was messed up)

------------------------------------------------------------------
Added zp_take_packs to remove packs
Added zp_spendingspree mode.

Feeling in a good mood but don't want people abusing antidote while your gone? Dont give them thousand of ammo packs, it wont be fair for other players. Instead, use Spending Spree mode! While on, everyone has unlimited ammo packs, and it lasts a maximum of one map (admin can re-enable it next map if he chooses).

To use: zp_spendingspree <0/1>

-------------------------------------------------------------------

Bank - saves ammo packs automatically on map change and player disconnect. No deposit/withdraw, you can access it as if it was in your pocket.

This is an edit to the original bank menu. This is not for sql sorry. They deserve credit for most the work (Note: this is just a hack-up to achieve the functionality I wanted) The original bank plugin was made by G-Dog -http://forums.alliedmods.net/showthread.php?t=80203&highlight=bank. Also a huge thanks to MeRcyLeZZ for his Zombie Plague plugin!!!!

Just one thing:
Make absolutely sure that in configs/plugins-zplague.ini zp_bank.amxx comes AFTER zombie_plague40.amxx (otherwise it will reset the variable with the default 5)

Note: change how much to give as default using defaultPacks const (its set to 5 right now). Everything seems to be working great!

That is all. Just compile the plugin and throw it in your plugins folder.
If you like, in your/amxmodx/configs/clcmds.ini, you may add:

"Give 10 packs" "zp_give_packs #%userid% 10" "bd" "u"
"Give 100 packs" "zp_give_packs #%userid% 100" "bd" "u"
"Give 1000 packs" "zp_give_packs #%userid% 1000" "bd" "u"

"Take 1000 packs" "zp_take_packs #%userid% 1000" "bd" "u"

In order to easily give packs. Then open amxmodmenu, press 9 for more, and click 1 for Client Commands Menu. Then scroll through the commands by pressing 8 until you reach the ammo packs, and then press 1-9 representing who to give them to.

Todo (to pretty things up):
- register zp_give_packs so the user's console doesnt return unknown command
- fix donate (doesnt work yet with spendingspree)

1/5/08 - version 0.7b
- fixed bug where people could spend all their money and it wouldn't save 0.
- added zp_take_packs to take away packs from someone who was accidentally awarded (or an admin was too generous)
- fixed user interface, give packs now alerts people they've been rewarded and admin receives confirmation
- reset bank now works
- added zp_spendingspree, admins can turn this setting on to temporarily allow everyone to purchase items at no expense (only lasts the map)
- other minor bug fixes
Attached Files
File Type: sma Get Plugin or Get Source (zp_bank.sma - 5256 views - 17.0 KB)
__________________
"Your momma's so dumb she required a cvar to turn the tv on." - Inspired by Speed!

Last edited by redomin8; 01-18-2009 at 23:18.
redomin8 is offline
Send a message via AIM to redomin8
 



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 20:29.


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