EventScripts Forums
Mattie's EventScripts and Source Forums
Mattie recommends...
Premier Sponsor:Platinum Sponsor:
 
Script Categories
addon (49) admin (269) admins (14) advert (15) adverts (19) afk (15) alerts (12) ammo (23) anti (15) auth (16) automatic (12) awp (23) ban (18) ba_jail (17) bhop (19) block (19) bomb (40) bonus (23) bot (24) bot-management (19) bots (17) bunnyhop (11) Buy (21) cash (65) chat (57) cheat (11) clan (16) classes (22) color (21) colors (18) command (20) commands (18) config (22) connect (42) CS:S (16) css (2498) Damage (35) database (11) dead (15) death (19) deathmatch (70) deathrun (12) disconnect (18) Dissolve (11) dm (20) dod:s (11) dods (386) easy (17) effects (120) English (15) entity (21) es_tools (12) Eventscript (12) flashbang (25) français (99) french (36) fun (286) funny (16) Gabeee (11) gameplay (174) give (16) gravity (11) grenade (25) grenades (29) gun (14) GunGame (26) GunGame5 (11) guns (17) Hack (15) headshot (32) health (54) hegrenade (13) hl2dm (329) HP (13) info (48) information (16) jail (26) jailbreak (11) join (23) jump (12) kick (23) kill (44) kills (22) knife (57) leveling (36) management (14) mani (15) map (25) map-management (27) maps (15) match (17) menu (106) message (20) messaging (52) mod (109) model (14) models (32) money (42) motd (12) music (29) mute (18) nades (18) name (13) noblock (35) player (40) player-management (31) player-tracking (28) popup (55) props (23) protection (27) punishment (50) python (63) quake (18) radio (21) random (36) rank (35) rates (16) rcon (13) realism (21) respawn (61) restrict (36) round (20) rpg (24) rules (42) say (11) scout (19) Script (20) script-helper (25) scriptpack (33) sdk (149) server (44) server-tools (42) shop (12) silly (31) simple (27) skins (24) slay (13) soccer (11) sound (45) sounds (92) spawn (62) speed (25) statistics (13) stats (48) STEAMID (23) Superhero (13) surf (31) Team (25) team-balance (14) teleport (11) text (14) TF2 (143) time (17) timer (14) tools (15) tracers (17) triggers (11) uedi (18) uses_auth (18) utility (11) vip (11) vote (36) voting (22) war (20) wcs (24) wcs:Python (32) weapon (77) weapons (114) web (14) welcome (12) zm (24) zombie (90) zombiemod (51) zombies (11)
Script Authors
*XYZ*SaYnt (12) .:MiB:. (11) .eMko* (6) 101satoon101 (10) 3R10N (24) 4u571n91 (5) 7355608 (9) Absolute (8) Ace Rimmer (40) adminc (5) Adz (8) AgathaKnuppelkuh (8) aidden (8) ajax (5) ak_47 (6) Al3c Tr3v3lyan (6) allstareng (5) ashbash1987 (9) ATAMAH (7) aznone (5) B00M (5) BackRaw (41) BFH_RedBull (8) bigfabi (7) Bioko (7) Blade (10) bladesback (13) bobdole (11) bodzsar1 (8) bonbon (36) Brainsucker (30) cagemonkey (8) carbon-14 (10) CaskioUTF (5) cbirou (15) ChaCaLz2psy4 (5) CharlesT (5) Chrisber (5) chrismrulz (9) Chun (6) cladiron (10) clipz934 (8) Colster (21) Cookieman8 (7) craziest (10) DanielB (19) Darkness123 (8) Dave (9) dbozan99 (7) deathx9 (5) Deathyy (15) dhack (16) Di[M]aN (12) DoCky (27) Don (15) dordtcore (8) DragonFreddo (8) Drassil (5) Einlanzers (42) EmbouT (10) emilplov (7) Errant (10) Eun (6) Fantole (9) Franc1sco (9) freddukes (18) Frequency (6) Fulmine (5) GAMEREN2 (8) german9114 (13) GODJonez (38) GoodfellaDeal (5) Hansi (6) HitThePipe (7) HOLLDIDAY (9) Icetouch (6) ichthys (25) infamous1 (9) Jeff91 (45) JoeyT2006 (30) Juba_PornBorn (12) jxl180 (10) KDBFame (6) L'In20Cible (7) Largo Usagi (10) Lobe (11) loKkdoKk (7) lolo-le-haricot (7) LosNir (5) Lumpi@Work (9) M4rc3L-XCN (7) macshot (6) Matth (5) Mattie (20) MBchrono (15) McFly (20) Medda (5) Memphis-84 (10) Messiah93 (12) Mickyy (5) micmacx (6) Mitchell (5) Mordavolt (7) MrScriptaz (5) mryoung (6) Nicolous (26) ojii (31) Omega_K2 (6) Owned|Myself (8) P3N (7) pand3mic (5) parsimba (5) Pascal257 (9) PatPeter (7) PDrop (10) Phaedrus (18) PhantOm Fury (7) phoenix131 (8) pinkyyy -.- (5) pitbull0993 (7) randomknifer (9) Ratzee (6) ReaCtioN2oo9 (6) Rennnyyy (17) revolutionfighters (6) RideGuy (12) Rio (9) Roeliekt (6) runamagic (13) sandking220 (6) Sarcasm_Poisoning (10) saRs| Johnny-5 (13) Schubaal (10) sea212 (5) sega74rus (7) sgt.angel (6) sicilia (5) sicman_adrian (22) skillz92 (7) sn4k3 (18) snake38 (10) sonicsight (7) spoonman184 (8) stabby (22) stas (22) Strontium Dog (30) SumGuy14 (25) SuperDave (45) surfteam (5) TaCo (5) TanaToS (17) Tealk (6) teowow (16) TheCheeTaH (20) TheDonFather (5) theresthatguy (6) Tiny Tod (7) Totyahun (9) uedi (38) Undead (25) usernamesaretaken (15) Warren (13) westham (6) WhiteAvenger (7) Wonder (14) X-Mania (5) XE_ManUp (13) xfalcon61 (5) zSweetXz (5) [Cs]Lord_Inferno2 (11) [NATO]Hunter (28) ||Wolf|| (10)
Search

Post new topic Reply to topic
Go to page 1, 2, 3, 4, 5 ... 25  Next
Author Message
User avatar
Guru
Guru
Profile

Posts: 1343
 
New postPosted: 2006-08-31, 11:00 am 
   Post subject: ba_bank v2.5.6 BETA

ba_bank v2.5.6 BETA
Updated on 13th April 2008.

Requirements:
Description:
ba_bank is a script for Counter-Strike: Source that allows players to store their money in a virtual bank. They can then deposit more money, or withdraw money from this bank account at any time. This allows players to join your server, create their account, store their money and access that money everytime they join your server.

For more information, please look here: http://addons.eventscripts.com/addons/view/ba_bank

Download:
Installation:
  1. Download
  2. Unzip it into cstrike/
  3. See section on setting up admins
  4. Add: es_load ba_bank to your autoexec.cfg
  5. Restart your server
Feature Requests:
Please post any feature requests here: http://featurelist.org/babank

Version Notes:
  • v2.5.6 BETA
    • Added unicode support (thanks to smithy and thekiller for helping me test this)
  • v2.5.5 BETA
    • Fixed bug that allowed players to withdraw cash during a pistol round
  • v2.5.4 BETA
    • Fixed interest always being given per round regardless of the bank_interest_per_round setting (again) - Thanks HitThePipe!
  • v2.5.3 BETA
    • Added Dutch translation - Thanks Guardian!
    • Fixed interest always being given per round regardless of the bank_interest_per_round setting.
  • v2.5.2 BETA
    • Corrected that folder structure in the download (Thanks jr1197!)
    • Fixed slight bug
  • v2.5.1 BETA
    • Finnish translation added to the langs.ini file - Thanks GODJonez!!
  • v2.5 BETA
    • Now requires EventScripts v2.0.0.244 or higher
    • Fully re-written in Python!
    • Reduced number of database queries
    • Now uses auth!
    • Fully multilingual!!
    • All configuration is now located in a single location: config.ini

_________________
Image


Last edited by british.assassin on 2008-04-13, 2:15 pm, edited 58 times in total.




User avatar
Guru
Guru
Profile

Posts: 1384
Location:
last house on the left
 
New postPosted: 2006-08-31, 2:35 pm 

darkpheonix wrote:
Just crashed my server testing it... As soon as you type bank in console it craps itself...


british.assassin,
Something doesn't seem right here:
ES:

    event player_say

    {

        if(event_var(text) == !bank) do

        {

            es_xsetinfo player_reg_check 0

            es_exists player_reg_check key ba_admin event_var(es_steamid)

       

            if(server_var(player_reg_check) == 0) do

            {

                es_keycreate ba_admin event_var(es_steamid)

                es_keysetvalue ba_admin event_var(es_steamid) balance 0

            }

           

            es popup send bank_main event_var(userid)

        }

    }

     

It looks to me like you're trying to do an admin check without the database being loaded yet. I didn't see the database ba_admin loaded or created anywhere else in the script before here.

Try this:
ES:

    event player_say

    {

        if(event_var(text) == !bank) do

        {

            es_xsetinfo player_reg_check 0

            es_keygroupload ba_admin |ba_bank  //or whatever folder

            es_exists player_reg_check key ba_admin event_var(es_steamid)

       

            if(server_var(player_reg_check) == 0) do

            {

                es_keycreate ba_admin event_var(es_steamid)

                es_keysetvalue ba_admin event_var(es_steamid) balance 0

            }

           

            es popup send bank_main event_var(userid)

        }

    }

     

If the ba_admin database doesn't yet exist, es_keygroupload will create it for you. Now your "if do" block should work. Give it a try. If that works, I would put that line somewhere else in the script though. You'll also want to delete keys and save where neccessary.

Hope this helps,
Hit


User avatar
Veteran
Profile

Posts: 872
Location:
New Jersey
 
New postPosted: 2006-08-31, 3:07 pm 

you should try having a look at this and maybe you can improve it as xe_ hasn't had a chance to update his bank in forever

http://forums.mattie.info/cs/forums/vie ... php?t=5286

_________________
Image
BYFBO. Custom Maps, http://www.pandatales.org/BYFBO_maps.html


User avatar
Guru
Guru
Profile

Posts: 1343
 
New postPosted: 2006-08-31, 5:31 pm 

HitThePipe wrote:
darkpheonix wrote:
Just crashed my server testing it... As soon as you type bank in console it craps itself...


british.assassin,
Something doesn't seem right here:
ES:
    event player_say
    {
        if(event_var(text) == !bank) do
        {
            es_xsetinfo player_reg_check 0
            es_exists player_reg_check key ba_admin event_var(es_steamid)
       
            if(server_var(player_reg_check) == 0) do
            {
                es_keycreate ba_admin event_var(es_steamid)
                es_keysetvalue ba_admin event_var(es_steamid) balance 0
            }
           
            es popup send bank_main event_var(userid)
        }
    }
     

It looks to me like you're trying to do an admin check without the database being loaded yet. I didn't see the database ba_admin loaded or created anywhere else in the script before here.

Try this:
ES:
    event player_say
    {
        if(event_var(text) == !bank) do
        {
            es_xsetinfo player_reg_check 0
            es_keygroupload ba_admin |ba_bank  //or whatever folder
            es_exists player_reg_check key ba_admin event_var(es_steamid)
       
            if(server_var(player_reg_check) == 0) do
            {
                es_keycreate ba_admin event_var(es_steamid)
                es_keysetvalue ba_admin event_var(es_steamid) balance 0
            }
           
            es popup send bank_main event_var(userid)
        }
    }
     

If the ba_admin database doesn't yet exist, es_keygroupload will create it for you. Now your "if do" block should work. Give it a try. If that works, I would put that line somewhere else in the script though. You'll also want to delete keys and save where neccessary.

Hope this helps,
Hit


LOL, sorry, i have been working on an admin script for a while and must have got confused .... that is supposed to be:

ES:

    event player_say

    {

        if(event_var(text) == !bank) do

        {

            es_xsetinfo player_reg_check 0

            es_exists player_reg_check key ba_bank event_var(es_steamid)

       

            if(server_var(player_reg_check) == 0) do

            {

                es_keycreate ba_bank event_var(es_steamid)

                es_keysetvalue ba_bank event_var(es_steamid) balance 0

            }

           

            es popup send bank_main event_var(userid)

        }

    }

     


jus updated the script posted above and the download :oops:

Thanks for that,

british.assassin


User avatar
Guru
Guru
Profile

Posts: 1343
 
New postPosted: 2006-08-31, 5:36 pm 

darkpheonix wrote:
Just crashed my server testing it... As soon as you type bank in console it craps itself...


The !bank command is a chat command, not a console command


User avatar
Guru
Guru
Profile

Posts: 1384
Location:
last house on the left
 
New postPosted: 2006-08-31, 9:22 pm 

I figured it was something like that assassin, just wanted to point it out to be sure. :)


User avatar
New User
Profile

Posts: 4
 
New postPosted: 2006-08-31, 10:25 pm 

does it work fine?
i would like to test it, but if it crahes my server i cant restart it without my hoster and he is too busy last time~~


User avatar
Newbie
Profile

Posts: 50
Location:
Minnesota USA
 
New postPosted: 2006-09-01, 10:45 am 

Will you consider making a full version like the origional that auto deposits and withdraws.

Thanks..


User avatar
Guru
Guru
Profile

Posts: 1343
 
New postPosted: 2006-09-01, 4:05 pm 

HitThePipe wrote:
I figured it was something like that assassin, just wanted to point it out to be sure. :)

Yeah, lol, thanks for that

dc-xenon wrote:
does it work fine?
i would like to test it, but if it crahes my server i cant restart it without my hoster and he is too busy last time~~

I really do not kno, as I said in the first post, I have not been able to test it as I do not have a server atm.

LaZyDayZ wrote:
Will you consider making a full version like the origional that auto deposits and withdraws.

I may do. The main reason for me not doing it however was I have never used the origional bank script and was not sure exactly how they worked .... if you described them to me ill c wot i can do

Thanks,

british.assassin


Last edited by british.assassin on 2006-09-01, 4:10 pm, edited 1 time in total.

User avatar
New User
Profile

Posts: 4
 
New postPosted: 2006-09-01, 4:09 pm 

but it could be that any1 else has tested it :(


User avatar
Helper
Profile

Posts: 200
 
New postPosted: 2006-09-01, 4:45 pm 

dc-xenon wrote:
does it work fine?
i would like to test it, but if it crahes my server i cant restart it without my hoster and he is too busy last time~~


most hosters have a CP, and if this script crashes your server i would honestly recomend switching providers.

_________________
Image


User avatar
Guru
Guru
Profile

Posts: 1343
 
New postPosted: 2006-09-01, 5:08 pm 

Has anyone tested this yet to see if it works properly?


User avatar
New User
Profile

Posts: 4
 
New postPosted: 2006-09-01, 5:36 pm 

a friend got some root servers and he host some server for me.. but i cant restart it if the server chrashes cuz the webinterface isnt rdy yet


User avatar
Newbie
Profile

Posts: 50
Location:
Minnesota USA
 
New postPosted: 2006-09-01, 8:57 pm 

The main featues that would be awesome to add are.

1. Auto Deposit. Some how it allowed you to deposit more than 16k, lets say you started a round with 16k and didnt buy anything. The $ you wold gain from events on the next round would be deposited to your account automaticly. Money could be from Bets, CSS basic cash, Bounties etc.

2. Auto Withdraw. Everyround it would give you 16k if you had it available in your bank.

Setting both of the above up required you to enter a menu and toggle auto deposit/withdraw. (you only needed to do this once)

3. Transfer. Lets say you plyed on a server often and had a large bank account. your buddy joins for the first time. in chat you type (transfer dollaramount playername) the funds would be withdrawn from your account and added to his.

All new players are required to type bank once to set up their account if they did not an entry would not be added to the database.

I will watch this thread. let me know of any questions.

I would be first inline to use your sript if enabled and I offer to test on my servers.

Thank you..


User avatar
Guru
Guru
Profile

Posts: 1343
 
New postPosted: 2006-09-02, 7:31 am 

LaZyDayZ wrote:
The main featues that would be awesome to add are.

1. Auto Deposit. Some how it allowed you to deposit more than 16k, lets say you started a round with 16k and didnt buy anything. The $ you wold gain from events on the next round would be deposited to your account automaticly. Money could be from Bets, CSS basic cash, Bounties etc.

2. Auto Withdraw. Everyround it would give you 16k if you had it available in your bank.

Setting both of the above up required you to enter a menu and toggle auto deposit/withdraw. (you only needed to do this once)

3. Transfer. Lets say you plyed on a server often and had a large bank account. your buddy joins for the first time. in chat you type (transfer dollaramount playername) the funds would be withdrawn from your account and added to his.

All new players are required to type bank once to set up their account if they did not an entry would not be added to the database.

I will watch this thread. let me know of any questions.

I would be first inline to use your sript if enabled and I offer to test on my servers.

Thank you..


1. Im not sure how I would do this .... ill try having a look through OMNiEternal's bank script and see how he did it.

2. This is easy, i will get around to doing this at some point. I will make 2 different versions like he did, Full and Lite, autowithdraw will not be in lite version.

3. This shouldnt be too hard either, ill prob add this to both Full and Lite




british.assassin


User avatar
New User
Profile

Posts: 15
 
New postPosted: 2006-09-02, 6:44 pm 
   Post subject: Cant' get submenu's up

I get the first bank menu, but when i select 1 2 or 3 the menu fades out and doesn't pop the next one up. It acts just like the banks that use mani.
Nothing shows up in the console, but if I type !bank again I get a message that I need to dismiss the first open popup. Any ideas guys?

Anyone know a bank mod that works without mani?


User avatar
Helper
Profile

Posts: 286
Location:
Derby, UK
 
New postPosted: 2006-09-03, 11:45 am 

You have to get Mani to run as a sourcemm app instead of just on it's own then the menus will work properly


User avatar
New User
Profile

Posts: 15
 
New postPosted: 2006-09-03, 2:11 pm 

I tried the souremm approach but it didnt work. Besides this bank is supposed to be mani-less.


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 435 posts ]  Go to page 1, 2, 3, 4, 5 ... 25  Next


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group