Too Cool for Internet Explorer

TimeWaster’s Banking Script for CS:S Eventscripts   February 7th, 2009

TimeWaster’s Banking Script is an advanced bank based on Eventscripts v1.5 and a SQLite database which makes it incredibly fast.
There’s an converter included to convert and copy “EternalBank” bank accounts for your easy switching pleasure.

Features:
- Multi language capable (atm English and German)
- Display of balance and interest rate within the main menu
- Automatic deposit
- Automatic withdraw
- Transfer money within a menu structure (no need to type silly commands)
- Manual deposit
- Manual withdraw
- Top10 List
- Every round will bear an interest
- Ability to turn off messages send on player spawn
- customizable name, interest rate, info rate and language (English and German atm)
- Included is a converter to copy bank accounts from an existing EternalBank.

This script is released under the GPL: http://www.opensource.org/licenses/gpl-license.php

You’ll find a list of servers running this script here: Game-Monitor.com

Installation:
1. The plugin “Eventscripts” has to be installed on your server: http://www.mattie.info/cs/ (both versions are fine). If you are using ES 1.5, please make sure you have the latest version installed (v1.5.0.171b), otherwise the money transfer will not work.
2. Extract this script inside your MOD folder /cstrike/
4. Configure the Banking script regarding your wishes in the script file itself
5. Add the following line to THE END of your autoexec.cfg
es_load banking
6. Restart your server
7. If you want to copy the bank accounts from an existing EternalBank database, you have to do the following:
7.1 Open your server console and type in: “BankConvert”. this will start the automatic conversion process. there’s nothing more to do.
7.2 After the conversion has successfully finished, remove your EternalBank completely and remove the loading command for EternalBank from your autoexec.cfg.
7.3 Restart your server.

PLEASE NOTE FIRST: the conversion process WILL COMPLETELY STOP your server from responding for the time the conversion is running. do not kill the server process, this is normal. Afterwards a short status message will be displayed in the server console.
In general it is not a bad idea to run this conversion on a local test server. (Recommended)
There’s also a glitch which is ES_Tools related: ES_Tools wants to kill and restart the server process when it’s detecting the server has stopped responding. it is a good idea to deactive ES_Tools by moving away the “es_tools.vdf” file temporarily and restarting the server before starting the conversion process.

Download:
TimeWaster’s Banking Script

Tags: , , , , , ,
This entry was posted on Saturday, February 7th, 2009 at 22:04 and is filed under Plugins, Programming. You can follow any responses to this entry through the RSS 2.0 feed.You can leave a response, or trackback from your own site.

22 Responses

April 14th, 2009 at 16:58
Muffin Says:

Hi TimeWaster,

i like your Bank Plugin and its really great.
But i have 1 question, how can I set the money limit, which the player do not cross.
Great…

Muffin

April 15th, 2009 at 00:00
admin Says:

well you could search for the string “2000000000″ and replace it with the amount you wish.

but there are 3 things to remember:
1. DONT replace the string in this line:
es_sql query banking “UPDATE usermoney SET money=’2000000000′ WHERE money<0;”
this line is to correct wrong bank acounts and has to stay at 2 billion.
2. NEVER set this value above 2 billion, otherwise a bank account could switch to negative saldo.
3. remember to change the amount in the text string stating that the maximum amount of money has reached ;o)

i think i will add this as a feature in a future version.
have fun.

April 15th, 2009 at 08:54
Muffin Says:

Wow thanks for your fast answer.
I have another wish to your future version, can add a option “pistol round”, it were really great.
Thx

Muffin

May 27th, 2009 at 16:54
magnat Says:

hi your plugin is very great, i das a question about the configuration of your plugin. i need to set a start value of cash, so every player that types the first time bank, get an account greated with 50000 $.

my second question is, can i anywhere in the script add admins to
manage the transfers ingame.

thank for your answer.

greets magnat

May 27th, 2009 at 17:19
admin Says:

1.: search for this line:

es_xformatqv sb_sqlQuery “INSERT OR IGNORE INTO usermoney (steamid, money, deposit, withdraw, messages, language, name) VALUES (‘%1′, ‘0′, ‘-1′, ‘-1′, ‘1′, ‘en’, ‘%2′);” sb_steamID sb_tempString2

and replace the ‘0′ value with the amount of money you wish (preserving the ‘ chars).

2.: there is no admin function at all. this is planned for future versions.

if you want a bank with admin functionality switch to “bbank”: http://addons.eventscripts.com/addons/view/bbank

May 28th, 2009 at 15:58
magnat3002 Says:

hi, hätte noch ne frage, da du dich ja offensichtlich mit Eventscripts auskennst, ich hab selbst etwas rumprobiert, bin aber jetzt an einem punkt wo ich nicht mehr weiter komme.

danke im vorraus

lg magnat

June 7th, 2009 at 17:46
Gareas Says:

Ich würde gern wissen wo ich einstellen kann das die bank sich erst ab der x runde aktiviert.

würde mich freuen wenn ihr/du mir a helfen könnt.

June 7th, 2009 at 18:48
admin Says:

das geht leider (noch) nicht, da es nicht eindeutig ist welche runde die erste ist, es ist dir sicherlich shconmal aufgefallen das wenn man der erste auf dem server ist die runde neugestartet wird, wenn genügend leute gejoined sind. in zukunft wird es ein solches feature geben, aber ich bin mir noch nicht sicher wie ich das umsetzen soll.

June 7th, 2009 at 20:26
Gareas Says:

ok … aber zeitlich aktivieren müsste ja machbar sein oder ? z.b.
{
delay 300
es_load banking
}
weiss nurnicht in welcher sprache ich es schreiben soll und wo am besten. vllt hast du da eine idee wie ich das realisieren könnte

June 25th, 2009 at 15:58
bstyle Says:

Vergiss uns hier nicht: :-D

http://forums.eventscripts.com/viewtopic.php?p=282425#282425

June 25th, 2009 at 17:04
admin Says:

Gareas: ich habe im moment leider keine zeit mich darum zu kümmern. tut mir leid.

June 26th, 2009 at 21:06
bstyle Says:

Schade…

October 19th, 2009 at 18:57
Kasper Says:

Hey, I wanna turn off the “only one player online so no deposit / withdraw etc possible” where can i do that?

btw nice banking script
I’m going to translate the menu to danish, say so if u whant it 4 your next release.

October 19th, 2009 at 19:17
admin Says:

search for all appearances of

getplayercount sb_tempString #human

(should be found 4 times) and replace them with

es_set sb_tempString 2

this should do it.
this feature will be configurable within the next release.

October 19th, 2009 at 19:21
Kasper Says:

thx alot :D

October 19th, 2009 at 20:27
Kasper Says:

my clan server is now running with this mode, I must say, it’s great just as it is, but the upgrade will make it pwn!!

October 19th, 2009 at 21:19
Kasper Says:

BTW.

i could only see the last of your message in my email, not here on the board.
you are more than welcome to contact me for the translation :D

December 10th, 2009 at 00:09
Gamer Says:

Hiho

Ich habe einen Gamesever von Strato.de und nach jedem Restart löscht sich das Bankguthaben wieder auf den “ErsterAcc” wert.

Kennt ihr das problem bzw. könnt ihr mir sagen wie ich das verhindern kann ?

Danke im vorraus

MFG Gamer

February 22nd, 2010 at 11:54
admin Says:

das problem von gamer lag an der unfähigkeit des servers dateien zu schreiben…

June 16th, 2010 at 12:44
H4rdStyl3 Says:

Hey Admin ich haben mal eine fragen unzwae wie macht man die Zinsen höher?

June 16th, 2010 at 12:51
admin Says:

in der datei “es_banking.txt” ganz oben im bereich “config”

July 12th, 2010 at 19:11
Mr.krebs Says:

Hallo wie kann man das Startgeld einstllen und gibt es sowas wie bank admin?

Leave a Reply