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

Subplugin Submission [ZP] Yet Another Ammo Bank [mysql]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EDUTz
Senior Member
Join Date: Jun 2010
Location: Dracula's Homeland
Old 05-09-2014 , 21:23   [ZP] Yet Another Ammo Bank [mysql]
Reply With Quote #1

[ZP] Yet Another Ammo Bank [mysql]
Author : EDUTz


Description:
Code:
We all know that some ammo banks here are bugged, people loosing ammo packs especially when the server is crashing. 
This plugin ensures that never happens again, using a simple algoritm of saving the ammo packs. 
To be specific, the packs are saved every minute and in the moment the user is exiting the server. 
This plugin support saving both ways: by name and by authid

I forgot to mention but this bank uses autosave and autoload. No need for any commands clientside.
ZP50/ZPA Support
Code:
This plugin also supports using zp50/zpa based plugin. All you have to do is to comment out this line :
//define ZP50
or 
//defined ZPA
and recompile.
If you're using 4.3 based plugin, leave default (both commented)

Total support: all known ZP Versions (4.x, 5.x, 1.6.x)
Authid/name suport:
Code:
By default the plugin saves the ammo by name. If you want to use the authid system, just comment out 
//#define USINGAUTHID
and recompile

Cvars:
Code:
For the moment there aren't any cvars to be used.
This plugin is using the cvars already declared in sql.cfg 
To be specific :

amx_sql_host	"host"
amx_sql_user	"user"
amx_sql_pass	"pass"
amx_sql_db	"db"

The default tablename used for saving ammopacks is 'zombie_ammo_bank'
Miscellaneous:
Code:
I'm never gonna support for nvault / alternative saving type so please don't ask me that.
Changelog
Code:
v1.0 - released
v1.1 - added authid support
v1.2 - repaired minor bug regardin authid
Servers using this plugin:
Click
Attached Files
File Type: sma Get Plugin or Get Source (zp_yaab.sma - 1090 views - 5.7 KB)

Last edited by EDUTz; 02-22-2016 at 17:22.
EDUTz is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 05-09-2014 , 21:37   Re: [ZP] Yet Another Ammo Bank [mysql]
Reply With Quote #2

So this bank uses autosave and autoload ammopacks?

and yes make another version with authid would be good..

Last edited by wicho; 05-09-2014 at 21:39.
wicho is offline
EDUTz
Senior Member
Join Date: Jun 2010
Location: Dracula's Homeland
Old 05-09-2014 , 22:01   Re: [ZP] Yet Another Ammo Bank [mysql]
Reply With Quote #3

yes autosaves and autoloads ammo packs.
updated to v1.1, added authid support.
EDUTz is offline
Gasa
Senior Member
Join Date: Sep 2013
Old 05-10-2014 , 11:02   Re: [ZP] Yet Another Ammo Bank [mysql]
Reply With Quote #4

Can you find solution for linux, on plugin end sometimes server will crash? I have exactly the same problem like in this thread https://forums.alliedmods.net/showthread.php?p=1116514

Last edited by Gasa; 05-10-2014 at 11:13.
Gasa is offline
EDUTz
Senior Member
Join Date: Jun 2010
Location: Dracula's Homeland
Old 05-10-2014 , 11:42   Re: [ZP] Yet Another Ammo Bank [mysql]
Reply With Quote #5

Have you had any problems using this plugins ? I never had a crash with this one. Just try it and let me know if it happens
EDUTz is offline
Gasa
Senior Member
Join Date: Sep 2013
Old 05-10-2014 , 11:48   Re: [ZP] Yet Another Ammo Bank [mysql]
Reply With Quote #6

Ya exactly the same, btw do you have a server on linux os?
Gasa is offline
EDUTz
Senior Member
Join Date: Jun 2010
Location: Dracula's Homeland
Old 05-10-2014 , 11:52   Re: [ZP] Yet Another Ammo Bank [mysql]
Reply With Quote #7

Yes, i'm using this plugin for over 2 years on different linux machines and no crash during plugin_end.

Make sure your crash is't happening because other mysql plugin. It can't be because of this one.
EDUTz is offline
Gasa
Senior Member
Join Date: Sep 2013
Old 05-11-2014 , 09:49   Re: [ZP] Yet Another Ammo Bank [mysql]
Reply With Quote #8

This bank is trash, im sorry but check ur auth id, also defined wrong,try to compile!

Last edited by Gasa; 05-11-2014 at 12:54.
Gasa is offline
Gasa
Senior Member
Join Date: Sep 2013
Old 05-11-2014 , 10:38   Re: [ZP] Yet Another Ammo Bank [mysql]
Reply With Quote #9

nvm

Last edited by Gasa; 05-11-2014 at 12:52.
Gasa is offline
EDUTz
Senior Member
Join Date: Jun 2010
Location: Dracula's Homeland
Old 05-11-2014 , 13:30   Re: [ZP] Yet Another Ammo Bank [mysql]
Reply With Quote #10

yep, seen that now
updated and tested.
EDUTz 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 04:11.


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