This is a bank plugin for amxmodx which allows players to create a bank account which they can deposit and withdraw from in-game. The plugin requires a mysql database.
- Amxmodx 1.8.1
- MySQL module
- MySQL 5.1
- Create a mysql database and assign a user to it with all privileges
- Upload the files to the appropriate places
- Make sure you fill in sql.cfg (included with amx) with your database details
- Add superbank.amxx into plugins.ini
- Restart your server
Add the folling cvars into amxx.cfg
- bank_offrounds - how many rounds after the start of the map before players can withdraw money (default 3)
- bank_withdrawlimit - how much a player can withdraw in a round (default 10000)
Congratulations! You have installed SuperBank!
- /openaccount - Opens a new account, if the player has already opened an account they will be shown a message informing them they already have an account.
- /balance - Displays the player's balance in chat to that player.
- /moneywithdrawn - Shows the player how much they have withdrawn so far this round.
- /maxdep - Deposits all of the player's cash into their account.
- /maxwit - Withdraws the maximum amount of cash a player can hold until either they have $16k, they reach their limit for that round or they have no money left in the account.
- maxdep (console) - Same as /maxdep, intended for binding to a key.
- maxwit (console) - Same as /maxwit, intended for binding to a key.
- /withdraw <amount> - Withdraws <amount> from the player's account, works in a similar way to /maxwit regarding limits such as balance, money space and money per round limit.
- /deposit <amount> - Deposit <amount>.
- menu
- bank transfers