AlliedModders

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

danielkza 12-17-2008 03:24

[ZP] Extension: Ammo Packs Bank
 
2 Attachment(s)
Description:

This plugins allows players to store and retrieve ammo packs in a bank-like system. They can deposit and withdraw ammo in-game, and can check how much they've got. Admins can choose the maximum amount the bank can hold. Data can be saved using NVault or in an SQL Database.

CVars:
  • zp_bank_announce_time - Announce the bank is running for players each *this* seconds
  • zp_bank_max - Maximum amount the bank can hold per each player
  • zp_bank_table - If using SQL, the table where to store the data (NOTE: This setting must be in 'amxmodx\configs\sql.cfg')
Extra Settings:

The plugin compiles by default using NVault. To use SQL, uncomment the 4th line, from:
Code:

//#define USING_SQL
To:
Code:

#define USING_SQL
Requirements:

Tested only with AMX 1.8.1. Sure to work on 1.8.0 >, no guarantees for previous versions.
Modules: NVault or SQLX

SQL Settings follow AMXX default SQL CVars:
  • amx_sql_host
  • amx_sql_user
  • amx_sql_pass
  • amx_sql_db
  • amx_sql_type
Changelog:

Code:

17/12/2008 - 1.0
    Initial Release
20/12/2008 - 1.1
    Fixed announce not working, added missing translation file


lionel_lo 12-17-2008 04:37

Re: [ZP] Extension: Ammo Packs Bank
 
http://forums.alliedmods.net/showthread.php?t=80203

Have before!!

NestleMilo 12-17-2008 04:40

Re: [ZP] Extension: Ammo Packs Bank
 
Please read the title, it's a f*cken extension.

darknicz 12-17-2008 10:42

Re: [ZP] Extension: Ammo Packs Bank
 
pardon my stupidity. so do i replace the previous bank i have or do i simply register it as another plugin?

Fry! 12-17-2008 11:10

Re: [ZP] Extension: Ammo Packs Bank
 
Probably. First buckup your currently bank and replace with new one.

danielkza 12-17-2008 12:17

Re: [ZP] Extension: Ammo Packs Bank
 
Quote:

Originally Posted by lionel_lo (Post 728605)

I didn't know about that one,, but I finished this one already. At least mine uses SQLx and threaded queries. If you guys want I can add the features mine is lacking, or any extra ones if you ask for them.

bmann_420 12-17-2008 15:05

Re: [ZP] Extension: Ammo Packs Bank
 
:D

G-Dog 12-17-2008 17:24

Re: [ZP] Extension: Ammo Packs Bank
 
I would personally suggest using this one instead of mine if you want proper sql support since that was my first attempt as coding sql which I basically got from superhero.

bloodstain 12-19-2008 21:27

Re: [ZP] Extension: Ammo Packs Bank
 
is it auto save? o.o

cause i press disconnect and came back its still there

Map change and its gone?

danielkza 12-19-2008 21:50

Re: [ZP] Extension: Ammo Packs Bank
 
Quote:

Originally Posted by bloodstain (Post 730133)
is it auto save? o.o

cause i press disconnect and came back its still there

Map change and its gone?

You mean the bank or the ammo you carry? The ammo you carry is managed by ZP, not by this plugin. The bank is saved whenever you disconnect (which also happens in mapchange, but all players are saved on plugin unload too for safety).


All times are GMT -4. The time now is 15:48.

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