Raised This Month: $52 Target: $400
 13% 

AMX Bank 1.7


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Johnny got his gun (102)
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 11-27-2004 , 03:38   AMX Bank 1.7
Reply With Quote #1

A banking plugin that includes interest and bank fees. Uses the vault or SQL...uses host/user/pass/db set in addons/amxmodx/configs/sql.cfg. Choose whether to use vault or SQL by changing the define in the .sma. -> Defaults to using the vault

All commands (both admin and normal) work in both console and chat.

Admin Commands:
-bank_open - Allow players to use the bank.
-bank_close - Turn off all bank functions except checking of balance.
-bank_givemoney <player> <amount> - Give a player money. (Works without bank on and player does not need an account.)

Commands:
-bank_create - Create a bank acount. If you have enough money, the value of the bank_default_opening cvar will be automatically deposited.
-bank_amount - Display the balance of your bank account.
-bank_deposit <amount> - Deposit money in your account.
-bank_withdraw <amount> - Withdraw money from your account.
-bank_help - Show the bank help window.
-bank_transfer <player> <amount> - Transfer money from your account to another player's account. Both players must have an account for this to work.
-bank_menu - Display the bank menu.
---I suggest binding these-----
-maxdep - Deposit all your money on hand.
-maxwit - Withdraw money until you have $16000 on hand or you run out of money in your account.
--------------------------------------

Cvars:
-bank_default_opening (default 1000; in $) - Set the amount that will be automatically deposited from a player when that player opens a new account. If they do not have enough, what ever they have will be deposited.
-bank_state (default 1; 0|1) - Turn the bank on/off. Use bank_open/bank_close instead because they give a message to the players.
-bank_min_players (default 2) - Minimum amount of players required to access bank functions.
-bank_restrict (default 0; 0|1|2) - Set whether or not to restrict bank usages to a defined list of players or admins not at all. If you use files the file will be addons/amxmodx/configs/bankusers.ini or if you use SQL it will be in the table bankusers. Just add their SteamID to either one and you're set. Setting to 1 will restrict to admins only and setting to 2 will restrict to the list.
-bank_interest_rounds (default 15) - Number of rounds between giving interest.
-bank_interest_rate (default 0.01) - Percent of money in bank to give as interest. (0.01 = 1%)
-bank_fees_base (default 0; in $) - Bank fee for first transaction in each round
-bank_fees_increase (default 0; in $) - Increase in the current bank fee per transaction.
-bank_offrounds (default 1) - How many rounds to wait to turn on the bank at the beginning of the map.
-bank_msg (default "This server is using AMX Bank. Type bank_help in console to find out how to use it.") - Set the message displayed to tell people that the bank is running.
-bank_msg_interval (default 60) - Set the rate in seconds at which the message is displayed.
-bank_use_ip (default 0; 0|1) - Set whether or not to use IP based accounts. Default is using SteamID based accounts.

Defines:
SQLON (default 0;0|1) - Define whether or not to use SQL.
HELPPAGE[] (default "http://home.netcom.com/~everco_ice/bankhelp17.html") - Change this URL if you wish to use a different help page then the one I have provided.

If you wish to make your own help page and upload it some where, find the line that says new HELPPAGE[] = and replace the address that's in the quotes with the web address of your new help page.
Attached Files
File Type: sma Get Plugin or Get Source (amx_bank.sma - 21359 views - 24.3 KB)
__________________
twistedeuphoria is offline
atambo
Senior Member
Join Date: Oct 2004
Location: Pittsburgh, PA
Old 11-27-2004 , 14:51  
Reply With Quote #2

if we do not have the sql.cfg as an enabled module can we still place our sql info and have it work with this plugin?
atambo is offline
Send a message via AIM to atambo Send a message via MSN to atambo Send a message via Yahoo to atambo
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 11-27-2004 , 15:45  
Reply With Quote #3

His question was: If I'm not using adminsql.amxx, I'm using admin.amxx will this plugin still work?

Yes, as long as you set the your SQL values correctly in sql.cfg and you have enabled the appropriate SQL module.
__________________
twistedeuphoria is offline
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 11-28-2004 , 13:46  
Reply With Quote #4

Update:
-Added vault support by define -> defaults to using the vault.
__________________
twistedeuphoria is offline
CNZ
Member
Join Date: Jul 2004
Location: Tucson, AZ
Old 12-06-2004 , 21:59  
Reply With Quote #5

I am getting a DBI include error? Can you help please.
__________________
War3 1.6 Server - cnz.bounceme.net:27015
Insanity Mod (SAVEXP) - localserver.bounceme.net:27015
Website: http://gk.fearjihad.com/
CNZ is offline
Send a message via ICQ to CNZ Send a message via AIM to CNZ
CNZ
Member
Join Date: Jul 2004
Location: Tucson, AZ
Old 12-06-2004 , 22:05  
Reply With Quote #6

found dbi.inc, now..

C:\HLServer2\cstrike\addons\amxx\scripting\in clude\dbi.inc(74) : warning 219: lo cal variable "result" shadows a variable at a preceding level
amx_bank.sma(397) : warning 213: tag mismatch

2 Warnings.
Small compiler 2.1.0 Copyright (c) 1997-2002, ITB CompuPhase

Is that something I should be worried about?
__________________
War3 1.6 Server - cnz.bounceme.net:27015
Insanity Mod (SAVEXP) - localserver.bounceme.net:27015
Website: http://gk.fearjihad.com/
CNZ is offline
Send a message via ICQ to CNZ Send a message via AIM to CNZ
CNZ
Member
Join Date: Jul 2004
Location: Tucson, AZ
Old 12-06-2004 , 22:19  
Reply With Quote #7

also, can you add a bankhelp command, and a little message that tells people that the bank is active and ready to use.
__________________
War3 1.6 Server - cnz.bounceme.net:27015
Insanity Mod (SAVEXP) - localserver.bounceme.net:27015
Website: http://gk.fearjihad.com/
CNZ is offline
Send a message via ICQ to CNZ Send a message via AIM to CNZ
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 12-07-2004 , 00:06  
Reply With Quote #8

Wierd...I'm not getting that error when I compile...try the web compiler. The bank_open + bank_close command give a little message what else would you like?
__________________
twistedeuphoria is offline
CNZ
Member
Join Date: Jul 2004
Location: Tucson, AZ
Old 12-07-2004 , 11:29  
Reply With Quote #9

can you attach your dbi.inc, maybe its that?
__________________
War3 1.6 Server - cnz.bounceme.net:27015
Insanity Mod (SAVEXP) - localserver.bounceme.net:27015
Website: http://gk.fearjihad.com/
CNZ is offline
Send a message via ICQ to CNZ Send a message via AIM to CNZ
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 12-07-2004 , 12:44  
Reply With Quote #10

Alright.
[dbi.inc removed by moderator] (no need, it's included with amx mod x)
__________________
twistedeuphoria is offline
Reply


Thread Tools
Display Modes

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 19:43.


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