Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Extension: Ammo Packs Bank


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 - 17351 views - 7.8 KB)
File Type: sma Get Plugin or Get Source (zp_bank_sql.sma - 11170 views - 7.7 KB)
__________________

Community / No support through PM

Last edited by danielkza; 02-19-2011 at 16:25.
danielkza 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 15:48.


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