Addon Details

Watch - Add Favorite


BBank ScreenShot

1 out of 1 users claim this version works for them.
Does this version work for you?
66
w00ts
w00t!2

BBank - Version 2.0.6d

posted on 2008-03-25 14:48:20
by bonbon



Description

[size=18][color=blue][b]BBank 5.1[/b][/color][/size] Posted by:[color=green] bonbon[/color] on [color=purple]2008-03-25 14:48:20[/color]. [size=18][color=blue][b]Requirements:[/b][/color][/size][list][b][*][url=http://mattie.info/cs]EventScripts 2.0 or higher[/url] [/b][/list][size=18][color=blue][b]Description:[/b] [/color] [/size][list]BBank Python is the remake of a bank (Honestly, I'm not sure who made the first one, I know there's 3 out there, at least) This was requested by a friend since the other bank did not meet his needs.[/list] This Bank has new features than the other es bank [size=16][color=blue][b]Features:[/size][/color][/b] [list] [color=red][size=14][b]Say commands:[/b][/size][/color] [*]!bank - Send the main bank menu to the person [*]!deposit - deposit of cash from the bank [*]!withdraw - withdraw of cash from the bank [*]!badmin (new) - Send the admin menu to the user if he/she is authorized [*]!give/!transfer "userid" "amount" - let's you transfer amount to a person [b][color=blue]NOTE: All commands can be used without the ! and in console[/color][/b] [size=14][color=red][b]Menu Features:[/b][/color][/size] [*]Deposit - Standard bank feature lets you deposit amount of cash [*]Withdraw - Standard bank feature lets you withdraw amount of cash [*]Transfer - Standard bank feature lets you transfer amount of cash to [*]Top (new) - Lets you see the top people with the most money [*]Player Info (new) - lets you check how much cash other people on the server have [*]Give/Take Cash (Admin/New) - Sends an escape box to admin that lets him/her give/take cash from [*]Reset bank(admin) - Option to reset the bank [*]Auto balance - automatically have x amount of cash on spawn [*]Reset Account - individually reset your account if you're bored and want to try to get to the top again! [*]Change Account Types (admin) - Admins can change the account types of players through the admin menu [*]Sound On/Off - Enable/Disable sounds when withdrawing or depositing (per user) [b][size=14][color=red]Intrest Rates:[/b][/size][/color] [*]admins can specify for people to gain amount of intrest for certain events [b][size=14][color=red]Loans:[/b][/size][/color] [*] You can loan money from the bank, and admins can specify how much intrest you will gain! [b][size=14][color=red]Config:[/b][/size][/color] [syntax="es"]// To configure bank accounts, go to bbankaccounts.py // To configure intrest rates, go to bbankintrest.py // The message template people will get when they access the bank or do anything to/with it tell_format #green[#lightgreenBBank#green]: // The amount of money a person gets for creating a bank account start_cash 5000 // The amount of players to show in the top players_in_top 10 // How many rounds in a map has to have passed for a player to withdraw round_until_withdraw 2 // This one requires es_tools but lets people auto deposit on map end bbank_auto_deposit_on_map_end 1 // Tell all intrest or just when the player spawns 2 =no tell bbank_tell_every_intrest 1 // Enable loan bbank_enable_loan 1 // Maps to auto disable the bank disabled_map_prefixes aim_,fy_ // Minimum amount of intrest before it starts to tell people they gained bbank_min_intrest_tell 5 // Whether or not people can enable/disable custom sounds for themselves bbank_enable_sounds 1 // Admins go here, seperate them with a comma bbank_admins STEAM_0:0:11228704,STEAM_0:0:15965938,STEAM_0:0:11089864,STEAM_0:1:5774407,STEAM_0:1:12114951 // The maximum amount of team changes a player can have per round (To stop money farming) bbank_max_team_changes_per_round 1 // How much money players lose for changing their team more than they're allowed to a round bbank_team_change_penalty 3000 // The maximum amount of menus a player can have open, there's an exploit that if a player opens a lot, like 50+ or so, your server will crash. bbank_max_menus 10 [/syntax] [b][size=14][color=red]Bank Accounts:[/b][/size][/color] [syntax="python"]# Account types are managed in game, in the admin menu which can be accessed by typing !badmin, badmin or either of those in console # If you don't want many account types. just ignore them and keep the stuff in default the way you like it. # Options are: # max_balance - the max amount of cash a person can have in the bank 0 = infinite # intrest_multiplier - the amount of extra intrest that the person gets (multiplied by numbers specified in intrest_rates above) # max_withdrawels the amount of withdrawels the person can make per round 0 = infinite # max_lones - how many loans a person may have out per round # max_lones_total_amount - the maximum total amount of money they can have in loans # loan_intrest_percent - how much intrest they're charged per round of not paying back # loan_intrest_cap - when players stop recieving intrest on loans # # you may easily add your own account types by following the formula [Default] max_balance = 2000000 max_loans = 1 max_withdraws = 4 upgrade_cost = 0 max_loan_total_amount = 10000 intrest_multiplier = 1 max_intrest_per_event = 1000 loan_intrest_cap = 30000 loan_intrest_percent = 10 intrest_cap = 2000000 [Gold] max_balance = 5000000 max_loans = 4 max_withdraws = 7 upgrade_cost = 200000 max_loan_total_amount = 25000 intrest_multiplier = 1.3 max_intrest_per_event = 1300 loan_intrest_cap = 30000 loan_intrest_percent = 4 intrest_cap = 5000000 [Platinum] max_balance = 6000000 max_loans = 5 max_withdraws = 8 upgrade_cost = 400000 max_loan_total_amount = 30000 intrest_multiplier = 1.5 max_intrest_per_event = 1400 loan_intrest_cap = 30000 loan_intrest_percent = 2 intrest_cap = 6000000 [Silver] max_balance = 4000000 max_loans = 3 max_withdraws = 6 upgrade_cost = 100000 max_loan_total_amount = 20000 intrest_multiplier = 1.2 max_intrest_per_event = 1200 loan_intrest_cap = 30000 loan_intrest_percent = 6 intrest_cap = 4000000 [Bronze] max_balance = 3000000 max_loans = 2 max_withdraws = 5 upgrade_cost = 50000 max_loan_total_amount = 15000 intrest_multiplier = 1.1 max_intrest_per_event = 1100 loan_intrest_cap = 30000 loan_intrest_percent = 8 intrest_cap = 3000000[/syntax] [b][size=14][color=red]Intrest Rates:[/b][/size][/color] [syntax="python"]# For intrest rates, the amount of intrest you get on each event. to disable something just put it at 0 # Events that are fired: # player_spawn - everytime the person spawns # player_activate - when they join your server # round_end - when the round ends # round_won - gives intrest to the wining team # round_survived - gives intrest to the survivors of the winning team # map_change - whenever the map changes Note: player_activate is also fired for everyone on that map # winners_of_map - gives intrest to the winners at the end of the map # bomb_plant - whenever a terrorist plants the bomb # bomb_defuse - whenever a CT defuses the bomb # bomb_explode - whenever the bomb explodes # streak - after 3 kills with no deaths, player will get (<intrest rate> * kills) * cash [intrest_rates] player_spawn = 0.00001 player_activate = 0.0005 round_end = 0.00001 round_won = 0.00001 round_survived = 0.00002 map_change = 0.00026 bomb_plant = 0.00001 bomb_defuse = 0.00002 bomb_explode = 0.00001 hostage_rescue = 0.0000025 streak = 0.000005[/syntax] [color=red][size=14][b]Other:[/color][/size][/b] [*]Custom Account Types - Allows easy access to control intrest rates for "premium" users that you chose. there are five default bank accounts which can be edited easily, deleted and even have more added. Each account has it's own maximum balance, intrest multiplier and maximum withdraws per round [/list] [size=18][color=blue][b]Download:[/b] [/color] [/size][list][b]:arrow: [url]http://addons.eventscripts.com/addons/download/bbank[/url][/b][/list] [size=18][color=blue][b]Installation:[/b][/color][/size][list][b]Create a folder under cstrike/addons/eventscripts called bbank put the files in there edit the file bbankconfig.py (the configuration file) to your liking add the lines es_load bbank to your autoexec.cfg restart your server and you're done[/b][/list] [size=18][color=blue][b]Languages[/b][/color][/size][list] [syntax="python"]# Do not translate anything beginning with # or $ unless it's #default, #green or #lightgreen # Colors you may use are: # #green - Dark green # #lightgreen - Light green (mani admin chat color) # #default - The normal text color # Thank you to # [X].plo|Rasmus[Coding-Team] - Danish # HolyHolz - German #-------------------------------------------------------------------------------- #freie deutsche Übersetzung von .:HolyHolz:. und .:MiaVolles:. [Show Balance] # Menu Option #1 en="Show Balance" de="Zeige Guthaben" [Transfer] # Menu Option #2 en="Transfer" de="Ueberweisungen" [Deposit] # en="Deposit" de="Einzahlen" [Withdraw] # en="Withdraw" de="Abheben" [Top] # "" en="Top" de="Bestenliste" [Player Info] # en="Player Info" de="Spieler-Informationen" [Settings] en="Settings" de="Einstellungen" [Loan Menu] en="Loan Menu" de="Kredit-Menue" [deposit] # Whenever someone deposits successfully en="$tell_format You have deposited #lightgreen$amount #green into the bank. you now have #lightgreen$balance" da="$tell_format Du har sat #lightgreen$amount #green ind på din konto. du har nu #lightgreen$balance" de="$tell_format #defaultDu hast #lightgreen$amount #defaultDollar #lightgreeneingezahlt#default, nun hast Du ein #lightgreenGuthaben #defaultvon #lightgreen$balance #defaultDollar" [withdraw] # Whenever someone withdraws en="$tell_format You have withdrawn #lightgreen$amount#green dollars from the bank and have #lightgreen$balance #green remaining" da="$tell_format Du har trukket #lightgreen$amount#green dollars fra din konto og har #lightgreen$balance #green tilbage" de="$tell_format #defaultDu hast #lightgreen$amount #defaultDollar #lightgreenabgehoben #defaultDein #lightgreenGuthaben #defaultbetraegt noch #lightgreen$balance #defaultDollar" [intrest] # Whenever someone gains intrest en="$tell_format You have gained #lightgreen$amount #greenintrest for $reason" da="$tell_format Du har fået #lightgreen$amount #greenrente på grund af $reason" de="$tell_format #defaultDu hast #lightgreenEinnahmen #defaultvon #lightgreen$amount #defaultDollar, aufgrund von: #lightgreen$reason #default" [max balance] # Whenever someone exceeds their max balance en="$tell_format Sorry, you have exeeded the maximum balance on your account" da="$tell_format Undskyld, du har overskredet den maximale værdi af din konto" de="$tell_format #defaultSorry, Du hast schon das #lightgreenMaximal-Guthaben #defaulterreicht" [cant deposit] # Whenever someone doesn't have enough to deposit en="$tell_format You do not have #lightgreen$amount #greento deposit!" da="$tell_format Du har ikke #lightgreen$amount #greentil at sætte i banken!" de="$tell_format #defaultDu hast keine #lightgreen$amount #defaultDollar zum #lightgreenEinzahlen #default" [transfer send] # Whenever someone sends money to someone en="$tell_format You have sent #lightgreen$amount #greendollars to $target" da="$tell_format Du har sendt #lightgreen$amount #greendollars til $target" de="$tell_format #defaultDu hast #lightgreen$amount #defaultDollar #lightgreen$target ueberwiesen #default" [transfer recieve] # When ever someone recieves money from someone en="$tell_format You have recieved #lightgreen$amount #greendollars into your account from $giver" da="$tell_format Du har modtaget #lightgreen$amount #greendollars til din konto fra $giver" de="$tell_format #defaultDu hast #lightgreen$amount #defaultDollar von #lightgreen$giver ueberwiesen bekommen #default" [cant withdraw] # Whenever someone has more than 16k cash en="$tell_format You cannot have more than 16000 dollars!" da="$tell_format Du kan ikke have mere end 16000 dollars!" de="$tell_format #defaultDu kannst nicht mehr als #lightgreen16000 #defaultDollar haben" [no withdraws] # when someone doesn't have any withdraws left en="$tell_format You do not have any withdraws left!" da="$tell_format Du har ikke nogen udbetalinger tilbage!" de="$tell_format #defaultDu kannst z. Zt. nichts mehr abheben" [first round withdraw] # Whenever someone tries to withdraw on first round en="$tell_format You cannot withdraw for another #lightgreen$rounds#green rounds!" da="$tell_format Du kan ikke få udbetalinger i den første runde!" de="$tell_format #defaultDu kannst in der ersten Runde nicht abheben" [no money withdraw] # Whenever someone doesn't have enough to withdraw en="$tell_format You do not have #lightgreen$amount #greento withdraw!" da="$tell_format Du har ikke #lightgreen$amount #greensom du kan få udbetalt!" de="$tell_format #defaultDu hast keine #lightgreen$amount #defaultDollar zum #lightgreenAbheben #default" [create] # Whenever someone creates an account en="$tell_format Account Created" da="$tell_format Konto lavet" de="$tell_format #lightgreenKonto eingerichtet #default" [querry balance] # Tells people how much they have in the bank en="$tell_format You have #lightgreen$amount #greenin the bank you have a#lightgreen $loan #greenloan left" da="$tell_format Du har #lightgreen$amount #greeni banken" de="$tell_format #defaultDu hast #lightgreen$amount #defaultDollar auf der Bank" [cant transfer] # Whenever someone doesn't have enough to transfer en="$tell_format You do not have #lightgreen$amount #greento transfer!" da="$tell_format Du har ikke #lightgreen$amount #greensom du kan overfører!" de="$tell_format #defaultDu hast keine #lightgreen$amount #defaultDollar zum #lightgreenUeberweisen #default" [admin account] # Whenever an admin tries to use !badmin without making an account en="$tell_format Please create an account first by typing #lightgreen!bank" da="$tell_format Vær sød at lave en konto først, ved at skrive #lightgreen!bank" de="$tell_format #defaultBitte erstelle Dir erst ein Konto (tippe !bank)" [input value] # Tell admins to input a value en="$tell_format Press escape on your keyboard to input a value" da="$tell_format Tryk Esc på dit tastatur for at skrive en værdi" de="$tell_format #defaultDruecke Escape auf der Tastatur um einen Wert einzutragen" [give cash] # Admin give cash en="$tell_format An admin has Given #lightgreen$amount #greencash too you" da="$tell_format En admin har Givet #lightgreen$amount #greentil dig" de="$tell_format #defaultEin Admin gibt Dir #lightgreen$amount #defaultDollar" [take cash] # Admin take cash en="$tell_format An admin has Taken #lightgreen$amount #greencash from you" da="$tell_format En admin har Taget #lightgreen$amount #greenfra dig" de="$tell_format #defaultEin Admin klaut dir #lightgreen$amount #defaultDollar :P" [cant take cash] # Whenever an admin tries to take cash a player doesn't have en="$tell_format Sorry, that person does not have enough cash for you to take #lightgreen$amount" da="$tell_format Undskyld, den person har ikke nok penge til at du kan tage #lightgreen$amount" de="$tell_format #defaultSorry, der Patient besitzt keine #lightgreen$amount #defaultDollar" [select a target] # title says it all en="$tell_format Please select a target!" da="$tell_format Vær sød at vælge et mål!" de="$tell_format #defaultBitte waehle ein Ziel" [not authorized] # Non admin try to use admin en="$tell_format Sorry, you are not authorized to run this command!" da="$tell_format Undskyld, du er ikke autoriseret til at bruge den kommando!" de="$tell_format #defaultDu bist hier nicht #lightgreenChef!!! #defaultund kannst diesen Befehl nicht ausfuehren" [invalid amount] # whenever someone tries to deposit a text amount en="$tell_format #lightgreen$amount#green is an invalid amount!" da="$tell_format #lightgreen$amount#green er ikke et gyldigt beløb!" de="$tell_format #lightgreen$amount #defaultist #lightgreenkein zulaessiger Betrag #default" [abalance] # Whenever someone changes their abalance en="$tell_format You will now automatically have #lightgreen$amount #greencash on spawn!" da="$tell_format Du vil nu automatisk have #lightgreen$amount #greenfra start!" de="$tell_format #defaultDu hast nun automatisch #lightgreen$amount #defaultDollar beim #lightgreenRundenstart #default" [admin change account] # whenever someone changes someone's account en="$tell_format You have changed #lightgreen$target\'s #greenaccount type to #lightgreen$type" da="$tell_format Du har ændret #lightgreen$target\'s #greenkonto type til #lightgreen$type" de="$tell_format #defaultDu hast den #lightgreenKontotyp#default von #lightgreen$target geaendert#default, er hat nun ein #lightgreen$type Konto#default" [change account] # The message you get when your account type is chagned en="$tell_format An admin has changed your account type to #lightgreen$type" da="$tell_format En admin har ændret din kontotype til #lightgreen$type" de="$tell_format #defaultEin Admin hat Deinen #lightgreenKontotyp geaendert#default, nun hast Du ein #lightgreen$type Konto#default" [no account] # The message an admin gets when trying to change someone's account who hasn't made one yet en="$tell_format Person has not made an account yet" da="$tell_format Personen har ikke lavet en konto endnu" de="$tell_format #lightgreenDer Patient besitzt z. Zt. kein Konto#default" [loan] # Whenever someone takes out a loan en="$tell_format You have taken a#lightgreen $amount #greendollar loan out, you now owe the bank#lightgreen $loan" da="$tell_format Du har taget et#lightgreen $amount #greendollar lån, du skylder nu banken#lightgreen $loan" de="$tell_format #defaultDu hast Dir #lightgreen$amount #defaultDollar geliehen, nun hast Du #lightgreen$loan#default Dollar #lightgreenSchulden" [cant loan] # Whenever someone's exceeded their max loan balance en="$tell_format You cannot owe the bank more than $amount" da="$tell_format Du kan kan ikke skylde banken mere end $amount" de="$tell_format #defaultDu kannst nicht mehr als #lightgreen$amount #defaultDollar #lightgreenleihen #default" [max loan] # Whenever the person has exceeded thier max loans en="$tell_format You do not have enough loans left!" da="$tell_format Du hat ikke nok lån tilbage!" de="$tell_format #lightgreenDein Kreditrahmen ist z. Zt. erschoepft#default" [loan payback] en="$tell_format You have repayed#lightgreen $amount #greenyou now have a#lightgreen $loan #greenloan remaining" da="$tell_format Du har tilbagebetalt#lightgreen $amount #greendu har nu et #lightgreen $loan #greenloan tilbage" de="$tell_format #defaultDu hast der Bank #lightgreen$amount #defaultDollar #lightgreenzurueckgezahlt#default, dein #lightgreenKredit #defaultbetraegt noch #lightgreen$loan #defaultDollar" [loan intrest] # whenever a person gains intrest on thier loan en="$tell_format You have gained#lightgreen $amount #greenintrest on your loan" da="$tell_format Du har fået#lightgreen $amount #greenrente på dit lån" de="$tell_format #defaultDu musst #lightgreen$amount #defaultDollar #lightgreenZinsen zahlen #defaultfuer Deinen #lightgreenKredit#default" [invalid loan value] # whenever someone gives an invalid value en="$tell_format Please input a value greater than 0!" da="$tell_format Vær sød at sætte en værdi større en 0 ind!" de="$tell_format #defaultBitte gib einen Wert groesser als 0 ein" [loan too big] # Too big of a loan en="$tell_format You do not have $amount to give back!" da="$tell_format Du har ikke $amount til at give tilbage!" de="$tell_format #defaultDu hast keine #lightgreen$amount #defaultDollar zum #lightgreenZurueckzahlen#default" [too much money] # Whenever someone tries to get more than 16k en="$tell_format You cannot have more than #lightgreen16000#green dollars!" da="$tell_format Du kan ikke have mere end #lightgreen16000#green dollars!" de="$tell_format #defaultDu kannst nicht mehr haben als #lightgreen16000 #defaultDollar" [not enough to repay] # Whenever someone tries to give back more than they have en="$tell_format You do not have#lightgreen $amount #greendollars!" da="$tell_format Du har ikke#lightgreen $amount #greendollars!" de="$tell_format #defaultDu hast keine #lightgreen$amount #defaultDollar" [invalid player] # whenever someone tries to transfer to a non person en="$tell_format Invalid player" da="$tell_format Ugyldig spiller" de="$tell_format #lightgreenunzulaessiger Spieler#default" [disabled] # Whenever the map is on a restricted map en="$tell_format BBank is currently #lightgreenOff" de="$tell_format #defaultDie Bank hat zur Zeit #lightgreengeschlossen#default" [sound toggle] # Player turning sounds on for them en="$tell_format Your sounds are now #lightgreen$toggle" de="$tell_format #defaultDie Sounds sind nun #lightgreen$toggle#default" [sound off] # Whenever someone tries to turn off sounds when bbank_enable_sounds is off en="$tell_format Sorry, sounds are disabled by default" de="$tell_format #defaultSorry, die #lightgreenSounds #defaultsind serverseitig #lightgreenaus#default" [team change penalty] # When a person loses money for changing teams too much en="$tell_format You have lost #Lightgreen$penalty#green for too many team changes!" [not enough args] # Whenever a person doesn't specify enough arguments en="$tell_format Not enough args to continue!" [admin give offline cash] # Whenever an admin gives cash to an offline person en="$tell_format You have given $steamid #lightgreen$amount" [already highest account] # Whenever a player tries to upgrade his/her account when they have the highest account en="$tell_format You already have the best account!" [not enough to upgrade] # Whenever a player can't afford to upgrade his/her account en="$tell_format You need #lightgreen$amount#green to upgrade!" [upgraded account] # Whenever a player updates his/her account en="$tell_format You have upgraded your account to #lightgreen$type!" [account deleted] # Whenever a player deletes a players account en="$tell_format You have deleted#lightgreen $player's#green account!" [admin show balance] # Whenever an admin checks the offline balance of someone en="$tell_format #lightgreen$player #greenhas #lightgreen$amount#green in the bank!" [transfer max balance] # Whenever a player tries to give money to a player who already has too much money en="$tell_format #lightgreen$player #greenhas reached their max balance!" [admin show account type] # Whenever an admin checks what kind of account a player has en="$tell_format #lightgreen$player's#green account type is #lightgreen$type" [non integer] # Whenever a player tries to deposit/withdraw/transfer a non integer amount en="$tell_format Amount must be an integer!" [gain intrest] # Whenever a player gains intrest from the previous rounds en="$tell_formatYou have gained a total of #lightgreen$amount#green dollars from last round!" [invalid abalance] # Whenever a player inputs a bad abalance amount en="$tell_formatPlease input a value below 16000 and above -1! 0 == disabled" [player no exist] # Whenever a player doesn't exist en="$tell_formatThat player is not on the server, anymore!" [input abalance amount] # Telling a player to input an abalance value en="$tell_formatPress escape on your keyboard to input a value to auto withdraw/deposit 0 == disabled" [reseting anyways] # Joke reseting anyways, to scare peoples en="$tell_formatToo bad, reseting anyways" [tell player info] # Telling a player players info en="$tell_formatSteamID - #lightgreen$steamid #greenCash - #lightgreen$cash #greenLast Known Name - #lightgreen$name" #en="$tell_format" #da="$tell_format" #de="$tell_format"[/syntax] [size=18][color=red][b]Translations needed![/size][/color][/b]

Installation

Create a folder under cstrike/addons/eventscripts called bbank put the file in there edit the file to your liking (the config is inside there) add the lines es_load bbank to your autoexec.cfg restart your server and you're done

Version Notes For 2.0.6d

Updated on: 2010-05-04 21:04:46 EST by bonbon (View Zip Contents)
Fixed say commands not being unregistered on unload Fixed an issue with bbank_save_every

( Previous Versions )