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

Subplugin Submission [ZP] Extension: Ammo Packs Bank


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 12-17-2008 , 03:24   [ZP] Extension: Ammo Packs Bank
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (zp_bank.sma - 17300 views - 7.8 KB)
File Type: sma Get Plugin or Get Source (zp_bank_sql.sma - 11134 views - 7.7 KB)
__________________

Community / No support through PM

Last edited by danielkza; 02-19-2011 at 16:25.
danielkza is offline
lionel_lo
Member
Join Date: Aug 2008
Old 12-17-2008 , 04:37   Re: [ZP] Extension: Ammo Packs Bank
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=80203

Have before!!
lionel_lo is offline
NestleMilo
BANNED
Join Date: May 2008
Location: http://zombieplague.org
Old 12-17-2008 , 04:40   Re: [ZP] Extension: Ammo Packs Bank
Reply With Quote #3

Please read the title, it's a f*cken extension.
NestleMilo is offline
darknicz
Member
Join Date: Dec 2008
Old 12-17-2008 , 10:42   Re: [ZP] Extension: Ammo Packs Bank
Reply With Quote #4

pardon my stupidity. so do i replace the previous bank i have or do i simply register it as another plugin?
darknicz is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 12-17-2008 , 11:10   Re: [ZP] Extension: Ammo Packs Bank
Reply With Quote #5

Probably. First buckup your currently bank and replace with new one.
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 12-17-2008 , 12:17   Re: [ZP] Extension: Ammo Packs Bank
Reply With Quote #6

Quote:
Originally Posted by lionel_lo View Post
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.
__________________

Community / No support through PM
danielkza is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 12-17-2008 , 15:05   Re: [ZP] Extension: Ammo Packs Bank
Reply With Quote #7

__________________
bmann_420 is offline
G-Dog
Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
Old 12-17-2008 , 17:24   Re: [ZP] Extension: Ammo Packs Bank
Reply With Quote #8

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.
__________________
If at first you don't succeed, then skydiving isn't for you.
G-Dog is offline
Send a message via AIM to G-Dog
bloodstain
Member
Join Date: Dec 2008
Old 12-19-2008 , 21:27   Re: [ZP] Extension: Ammo Packs Bank
Reply With Quote #9

is it auto save? o.o

cause i press disconnect and came back its still there

Map change and its gone?
bloodstain is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 12-19-2008 , 21:50   Re: [ZP] Extension: Ammo Packs Bank
Reply With Quote #10

Quote:
Originally Posted by bloodstain View Post
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).
__________________

Community / No support through PM
danielkza 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 20:14.


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