AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP] Yet Another Ammo Bank [mysql] (https://forums.alliedmods.net/showthread.php?t=240152)

EDUTz 05-09-2014 21:23

[ZP] Yet Another Ammo Bank [mysql]
 
1 Attachment(s)
[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

wicho 05-09-2014 21:37

Re: [ZP] Yet Another Ammo Bank [mysql]
 
So this bank uses autosave and autoload ammopacks?

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

EDUTz 05-09-2014 22:01

Re: [ZP] Yet Another Ammo Bank [mysql]
 
yes autosaves and autoloads ammo packs.
updated to v1.1, added authid support.

Gasa 05-10-2014 11:02

Re: [ZP] Yet Another Ammo Bank [mysql]
 
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

EDUTz 05-10-2014 11:42

Re: [ZP] Yet Another Ammo Bank [mysql]
 
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 :)

Gasa 05-10-2014 11:48

Re: [ZP] Yet Another Ammo Bank [mysql]
 
Ya exactly the same, btw do you have a server on linux os?

EDUTz 05-10-2014 11:52

Re: [ZP] Yet Another Ammo Bank [mysql]
 
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.

Gasa 05-11-2014 09:49

Re: [ZP] Yet Another Ammo Bank [mysql]
 
This bank is trash, im sorry but check ur auth id, also defined wrong,try to compile!

Gasa 05-11-2014 10:38

Re: [ZP] Yet Another Ammo Bank [mysql]
 
nvm

EDUTz 05-11-2014 13:30

Re: [ZP] Yet Another Ammo Bank [mysql]
 
yep, seen that now
updated and tested.


All times are GMT -4. The time now is 06:49.

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