[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