Raised This Month: $85 Target: $400
 21% 

SM Bank Mod: MySQL


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Nican
Veteran Member
Join Date: Jan 2006
Location: NY
Plugin ID:
167
Plugin Version:
3.0
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    5 
    Plugin Description:
    Bank mod for source mod, mysql based
    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, 4193 views)
    File Type: sp Get Plugin or Get Source (bank.sp - 5853 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
    tkaway69
    Senior Member
    Join Date: Dec 2004
    Location: Millbrook Alabama
    Old 08-27-2007 , 00:42   Re: SM Bank Mod: MySQL
    Reply With Quote #2

    Very nice. Will you be adding the ability to transfer funds between players?
    __________________
    tkaway69 is offline
    Send a message via AIM to tkaway69 Send a message via MSN to tkaway69 Send a message via Yahoo to tkaway69
    kipplitz
    Junior Member
    Join Date: Aug 2007
    Old 08-27-2007 , 00:44   Re: SM Bank Mod: MySQL
    Reply With Quote #3

    ok, help a new guy out. To use this, you need the database manager. I assume you need to have an install of mysql as well? Can you do this on a hosted server? Any light on this mucho appreciated!

    Thanks,

    KippLitz
    kipplitz is offline
    Nican
    Veteran Member
    Join Date: Jan 2006
    Location: NY
    Old 08-27-2007 , 01:08   Re: SM Bank Mod: MySQL
    Reply With Quote #4

    I am trying to make the database manager support SQLite too... but SQLite is just not complete enough to use database manager...

    When I make database manager support SQLite I will PM you


    EDIT:

    Woohoo! I found what I needed, now I need to make it compatiable
    __________________
    http://www.nican132.com
    I require reputation!

    Last edited by Nican; 08-27-2007 at 02:04.
    Nican is offline
    Send a message via ICQ to Nican Send a message via MSN to Nican
    Nican
    Veteran Member
    Join Date: Jan 2006
    Location: NY
    Old 08-27-2007 , 10:43   Re: SM Bank Mod: MySQL
    Reply With Quote #5

    There... I added SQLite support to Database manager
    __________________
    http://www.nican132.com
    I require reputation!
    Nican is offline
    Send a message via ICQ to Nican Send a message via MSN to Nican
    Rainbow 6
    Junior Member
    Join Date: Mar 2006
    Old 08-29-2007 , 18:36   Re: SM Bank Mod: MySQL
    Reply With Quote #6

    does not want to compile
    Rainbow 6 is offline
    Nican
    Veteran Member
    Join Date: Jan 2006
    Location: NY
    Old 08-29-2007 , 18:37   Re: SM Bank Mod: MySQL
    Reply With Quote #7

    Do you have the database manager?
    http://forums.alliedmods.net/showthread.php?t=60036
    __________________
    http://www.nican132.com
    I require reputation!
    Nican is offline
    Send a message via ICQ to Nican Send a message via MSN to Nican
    Rainbow 6
    Junior Member
    Join Date: Mar 2006
    Old 08-29-2007 , 20:19   Re: SM Bank Mod: MySQL
    Reply With Quote #8

    yes i do but what good is it if i can not even get the plugin downloaded so i can get it to my game server
    Rainbow 6 is offline
    Nican
    Veteran Member
    Join Date: Jan 2006
    Location: NY
    Old 08-29-2007 , 20:21   Re: SM Bank Mod: MySQL
    Reply With Quote #9

    Here is the deal, this plugin runs over the database manager, WITH IT NEEDS TO BE DOWNLOADED

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

    Install a_mysql.sp and I will add a compiled version to this post
    __________________
    http://www.nican132.com
    I require reputation!
    Nican is offline
    Send a message via ICQ to Nican Send a message via MSN to Nican
    bobbobagan
    SourceMod Donor
    Join Date: May 2007
    Location: New Zealand
    Old 08-30-2007 , 00:13   Re: SM Bank Mod: MySQL
    Reply With Quote #10

    Are bank balances saved?
    __________________
    bobbobagan is offline
    Send a message via Skype™ to bobbobagan
    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 10:59.


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