Raised This Month: $ Target: $400
 0% 

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 - 1097 views - 5.7 KB)

Last edited by EDUTz; 02-22-2016 at 17:22.
EDUTz 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 09:17.


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