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

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


Post New Thread Reply   
 
Thread Tools Display Modes
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 - 5251 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
redomin8
Member
Join Date: Feb 2005
Old 12-31-2008 , 06:23   Re: [ZP] Bank - with Autosave
Reply With Quote #2

Mod move this to Zombie Mod plz?
__________________
"Your momma's so dumb she required a cvar to turn the tv on." - Inspired by Speed!
redomin8 is offline
Send a message via AIM to redomin8
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 12-31-2008 , 07:24   Re: [ZP] Bank - with Autosave
Reply With Quote #3

Quote:
Originally Posted by redomin8 View Post
Mod move this to Zombie Mod plz?

[ZP] Bank - with Autosave = plugin 4 zombie plague
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
iamhim
BANNED
Join Date: Dec 2008
Old 12-31-2008 , 09:42   Re: [ZP] Bank - with Autosave
Reply With Quote #4

thx alot redomin! +karma!
iamhim is offline
mozart123
Member
Join Date: Nov 2008
Old 12-31-2008 , 10:41   Re: [ZP] Bank - with Autosave
Reply With Quote #5

plugin failed to compile . pls contact ...
fix ur sma pls
__________________

mozart123 is offline
redomin8
Member
Join Date: Feb 2005
Old 12-31-2008 , 18:03   Re: [ZP] Bank - with Autosave
Reply With Quote #6

Compile it yourself (save as sma). It looks like the online compiler is creating a 1.1mb file out of 10kb.

It should be roughly 14kb when compiled
__________________
"Your momma's so dumb she required a cvar to turn the tv on." - Inspired by Speed!
redomin8 is offline
Send a message via AIM to redomin8
mavogler
BANNED
Join Date: Nov 2008
Old 12-31-2008 , 18:07   Re: [ZP] Bank - with Autosave
Reply With Quote #7

thw webcompiler is bullshit :S
mavogler is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 12-31-2008 , 18:52   Re: [ZP] Bank - with Autosave
Reply With Quote #8

Yes, this goes into the Zombie Plague section.

"They deserve credit for most of the work" But you say no names? Where is the credit then..
__________________
bmann_420 is offline
mavogler
BANNED
Join Date: Nov 2008
Old 01-04-2009 , 12:07   Re: [ZP] Bank - with Autosave
Reply With Quote #9

its is VERY buggy, whwn a player disconnect and came again in the same map, he loose the 80% of his ammo packs :S, coul somebady fix it?

and the ammo packs, on map change are sometimes saved, no on EVERY map change, :S
mavogler is offline
redomin8
Member
Join Date: Feb 2005
Old 01-05-2009 , 04:42   Re: [ZP] Bank - with Autosave
Reply With Quote #10

I gave credit where it is due, and made some cool changes like adding Spending Spree Mode for ammo packs, and zp_take_packs to take away packs from someone (in case other admins were way too generous).

As for mavogler, I played around with it, and couldn't recreate your problem (losing 80%?). The only scenario I've seen where it doesn't save ammo packs is if the server crashes, vault will not have saved all the data. I am looking into a solution for this. Could you give a little more insight into the problem?
__________________
"Your momma's so dumb she required a cvar to turn the tv on." - Inspired by Speed!
redomin8 is offline
Send a message via AIM to redomin8
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 18:10.


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