View Single Post
Author Message
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Old 08-27-2007 , 00:23   SM Bank Mod: MySQL
Reply With Quote #1

Bank mod: SQL

Original Author:
mateo10
Edit because
Request to add MySQL support

Description
Users can deposit/withdraw money money from a bank account at any time

Commands
  • say !deposit (amount) - Deposit money into your bank
  • say !withdraw (amount) - Get money from your bank
  • say !bankstatus - Shows how much money you have in your bank
  • say !bank - Shows a friendly menu
  • sm_bankadd / sm_bankset (search person) (amount)

Cvars
  • sm_bank_allow (default: 1) - Enable/Disable this plugin
  • sm_bank_max (default: 50000) - The maximun amount of money is allowed in the bank
  • sm_bank_fee (default: 250) - How much users must pay for each deposit
  • sm_bank_transfer (default: 1) - Allow users to share money between them selfs
  • sm_bank_interest (default: 5.0) - % of interest players will get per round
  • sm_bank_pistol (default: 0) -Set to 1 to block withdraw during pistol round

Special thanks to:
  • sessus - For the German translation.


Change log
  • August 26, 2007
    • Initial release
  • August 27, 2007
    • Fixed fee error
    • Fixed money setting if player reached limit
  • August 29, 2007
    • Fixed small error
  • September 04, 2007
    • Added menu
    • Added bank money transferring
    • Added money with commas
  • September 06, 2007
    • Fixed money error... Displayed wrong number when depositing
  • October 25, 2007
    • Fixed error that people could not transfer money
    • Set maxmoney to 0 for unlimited money
    • Add commands sm_setmoney / sm_addmoney to players
  • October 27, 2007
    • Fixed transfer error of max clients not registering
  • November 4, 2007
    • Fixed possible change of client disconnecting while transferring money
    • Fixed some memory leaks
    • Fixed error of clients getting more money then they could on interest
  • November 24, 2007
    • Added cvar to block usage of withdraw during pistol round
  • March 22, 2007
    • Made menu show money values relative to how much money the player has.
Attached Files
File Type: txt plugin.smbank.txt (4.2 KB, 4570 views)
File Type: sp Get Plugin or Get Source (bank.sp - 6944 views - 23.7 KB)
__________________
http://www.nican132.com
I require reputation!

Last edited by Nican; 05-11-2009 at 06:54.
Nican is offline
Send a message via ICQ to Nican Send a message via MSN to Nican