1. Post #1
    Dennab
    March 2010
    102 Posts
    [release]
    Addon: ATM Banker v2 (DarkRP Only!)
    Version: 2.0
    Made By: Fish

    ****
    ScriptEnforcer recommended when using this ATM!
    ****

    Description:

    This is an easy-to-use ATM Banker, which allows users to deposit and withdraw money to and from their bank account.
    Users can also access other bank account's IF they have the person's pin to login to their account.

    Installation:
    PLACE the 'ATM Banker v2' folder into the server's 'addons' folder and make sure the server restarts!
    You can look inside the 'atmspawn.lua' file to edit the vector position if you wish for a different location.

    How to Set-Up (OWNERS/SUPER-ADMINS ONLY!)*

    -To set up the ATM, you must be in the server with the ATM installed.

    -After, you can set the spawn points by looking at the place where you would like an ATM to spawn and then typing in chat: /setatmspawn or putting: atm_setspawn into console.

    To spawn all of the ATMs, type into console: atm_spawnall

    To remove all of them, type into console:
    atm_removeall

    To remove all spawns, then type into console:
    atm_removespawns

    How to Use:
    -Press E on the ATM to get started. When you come to the ATM for the first time, you will create a 4-digit PIN code.

    -After, you can login to your account by entering the PIN to your own account and pressing 'OK' or by just pressing ENTER. If you forget the PIN to your account, no worries, just press 'Reset Your PIN' and you're good to go.

    -Once you're in the main ATM menu, you can deposit into your account or withdraw money from your bank account.

    -At the top you'll be able to see the amount that's in your account including which account you're logged into.

    -When you're done doing stuff, just simply press the 'X' on the top right of the menu.

    Super-Admin Tab
    SuperAdmins are given a tab where they can control everyone's bank account. This includes: printing everyone's money and pin codes, resetting money and pin codes, withdrawing money from a specific account or depositing, and so on. This is very useful for Super-Admins.

    Anything else I should know about?
    There's a down arrow on the security menu which reveals names of people in the server. This allows you to login to someone else's bank account, IF AND ONLY IF you have their PIN and then you can deposit and withdraw money.

    -An example might be if your friend gives you their PIN so you can deposit some of your money into their bank account, etc.

    Interest System:
    -There's also an interest system built in. This system gives you 0.03% of your banked money and adds it to your bank account every 2 minutes. This allows you to rack up even more $$$.

    Pictures:
    PIN Set-Up

    ATM Security Login

    Bank Account Manager

    SuperAdmin Tab


    Where can I download this?

    [/release]
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Dumb x 8Lua King x 3Funny x 2Winner x 2Useful x 1 (list)

  2. Post #2
    Gold Member
    Dennab
    April 2008
    1,500 Posts
    What happens if two people have the same PIN?

    Edited:

    And if you guess someones pin, can you clear out their account?
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Informative Informative x 1 (list)

  3. Post #3
    flutterpie's Avatar
    November 2011
    69 Posts
    Looks great; putting it on my DarkRP server right now. It's amazing. The "Bank System" addon wasn't nearly as good, it was completely broken, annoying, and unfair but with this everything is great. Thieves can, well, do their stuff with it, the interest isn't so high, the UI is great (though could use some colour) and it's very easy to use. My only negatives are that the UI is colorless and very small.

    Also, to change interest, you can go into the entity's init.lua and search for function interest.func() It should be somewhere around there!

    Happy Thanksgiving for you US residents!

  4. Post #4
    Dennab
    March 2010
    102 Posts
    What happens if two people have the same PIN?

    Edited:

    And if you guess someones pin, can you clear out their account?
    If two people have the same PIN, it won't affect anything. If someone guesses someone's PIN and gets in, then the person's bank account might get robbed. If you get into someone else's account, you can clear out their money and be a thief. That's why making a complex PIN will ensure the safety of your bank account.
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Dumb Dumb x 4Lua King Lua King x 1 (list)

  5. Post #5
    zarthalan's Avatar
    July 2010
    144 Posts
    Sounds like it would be wonderful for darkrp.

  6. Post #6
    Madrockon's Avatar
    August 2010
    139 Posts
    Well, it is absolutely awesome, but when I try it I get this error when I try to deposit or withdraw:
    ERROR: GAMEMODE:'PlayerSay' Failed: [addons/ATM Banker/lua/entities/atm_machine/init.lua:27] attempt to index field 'DarkRPVars' (a nil value)
    [cpp] Error: hook->PlayerSay returned a non-st
    This also stops me from buying guns from Dark RP.
    If I attempt to buy guns, it wont happen. The command for buying guns will show up in the chat.

  7. Post #7
    Dennab
    March 2010
    102 Posts
    Well, it is absolutely awesome, but when I try it I get this error when I try to deposit or withdraw:
    ERROR: GAMEMODE:'PlayerSay' Failed: [addons/ATM Banker/lua/entities/atm_machine/init.lua:27] attempt to index field 'DarkRPVars' (a nil value)
    [cpp] Error: hook->PlayerSay returned a non-st
    This also stops me from buying guns from Dark RP.
    If I attempt to buy guns, it wont happen. The command for buying guns will show up in the chat.
    I'm pretty sure it's because you have an older version of DarkRP. It works for DarkRP 2.4.2 just fine for me.
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Dumb Dumb x 2 (list)

  8. Post #8
    Madrockon's Avatar
    August 2010
    139 Posts
    Where can I download 2.4.2?
    Thanks.

    Edited:

    Nope, its ok I got it.
    -_-
    I wasn't concentrating.
    Reply With Quote Edit / Delete Reply Mac United Kingdom Show Events Dumb Dumb x 1 (list)

  9. Post #9
    Ploo's Avatar
    December 2009
    364 Posts
    Is there a server-side enforced interval between pin attempts and a lock out period of sorts?

    I can imagine people making lua crackers of sorts.
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Agree Agree x 1 (list)

  10. Post #10
    aurum481's Avatar
    November 2008
    2,519 Posts
    Add a secret concommand for printing all the pins
    Reply With Quote Edit / Delete Reply Windows XP Lithuania Show Events Disagree Disagree x 2 (list)

  11. Post #11
    Best Gamemode Ever
    Deadman123's Avatar
    July 2011
    1,612 Posts
    Fish! I LOVE this mod

  12. Post #12
    LaughingLeader's Avatar
    July 2011
    19 Posts
    Hi. I've been loving this addon. It's a great addition to the roleplay script I'm working on.

    That being said, I noticed an exploitable glitch with it. If you withdraw a crazy amount like -999,999,999,999, it adds that huge amount to your account, so you can then withdraw over $1,000,000.

    There has to be a way to add a withdraw limit, right? Or limit being able to withdraw a negative amount of money. That way people can't break it like that.

    The other thing I was wondering about is, where does the ATM store all the player's account information? I'm curious, so if I have to back it up or something, I'll know where to find that information. This would also be helpful to know, so if I have to reset somebody's individual account, I could do so (without having to clear every account).

    Thanks.

  13. Post #13
    Dennab
    March 2010
    102 Posts
    ATM BANKER V2 IS NOW RELEASED!

    MAJOR UPDATES FROM V1:
    -Fixed the money exploit
    -Made it so the ATMs can't be arrested
    -Recoded most of the Derma
    -Added custom spawning system

    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Dumb Dumb x 1 (list)

  14. Post #14
    SirCrest is my life, so is yours.
    Goz3rr's Avatar
    October 2009
    7,456 Posts
    You need to make it so they only have 3 tries to enter their pin, then there's a 5 minute delay or something.

  15. Post #15
    CyberGmod Founder PropHuntv2 Home
    Phoenixf129's Avatar
    May 2009
    1,030 Posts
    I call this dumb, as i can see "Print PIN Codes".

    Now WHO out of ALL of the DarkRP servers, isn't going to press that fucking button and tell everyone?
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Dumb Dumb x 1 (list)

  16. Post #16
    Viewer's Avatar
    April 2011
    436 Posts
    I call this dumb, as i can see "Print PIN Codes".

    Now WHO out of ALL of the DarkRP servers, isn't going to press that fucking button and tell everyone?
    Dude,that's in the Super Admin Tab.Only Super Admins can do that.So no,noone will do that except admins WITH permission.And they probably wont tell.

  17. Post #17
    CyberGmod Founder PropHuntv2 Home
    Phoenixf129's Avatar
    May 2009
    1,030 Posts
    Dude,that's in the Super Admin Tab.Only Super Admins can do that.So no,noone will do that except admins WITH permission.And they probably wont tell.
    Okay, lets put this simple for you:

    DarkRP SuperAdmins.
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Funny Funny x 1 (list)

  18. Post #18
    "The superior man understands what is right; the inferior man understands what will sell"
    Chessnut's Avatar
    August 2011
    3,556 Posts
    Okay, lets put this simple for you:

    12 Year old admins/Server owner.
    Fixed.

  19. Post #19
    Viewer's Avatar
    April 2011
    436 Posts
    Ah,i see....

  20. Post #20
    Partent Z's Avatar
    May 2011
    570 Posts
    Print the pins clientside or serverside?

  21. Post #21
    Dennab
    March 2010
    102 Posts
    Print the pins clientside or serverside?
    The server only sends the pins to the Super-Admin that pressed the button.

  22. Post #22
    shawnmd's Avatar
    February 2011
    39 Posts
    Dude,that's in the Super Admin Tab.Only Super Admins can do that.So no,noone will do that except admins WITH permission.And they probably wont tell.
    lol, why wasn't this assumed?

    Also, it does not seem to be working on my server... It says I have placed a position for the bank, but doesn't react to the spawn command...

    Any suggestions?

  23. Post #23
    Dennab
    March 2010
    102 Posts
    lol, why wasn't this assumed?

    Also, it does not seem to be working on my server... It says I have placed a position for the bank, but doesn't react to the spawn command...

    Any suggestions?
    Mhhh. Make sure you are Super-Admin using the command: "atm_spawnall" in console. P.S. Rcon doesn't work when you try the superadmin commands.

  24. Post #24
    Title

    August 2009
    301 Posts
    Mhhh. Make sure you are Super-Admin using the command: "atm_spawnall" in console. P.S. Rcon doesn't work when you try the superadmin commands.
    22:34:03 L 01/31/2012 - 23:33:56: Lua Error: [@RunString:2] Tried to use a NULL entity!
    When spawning a ATM, it appears to save fine (creates the file).

  25. Post #25
    shawnmd's Avatar
    February 2011
    39 Posts
    It's Working now... But i'm getting reports that people have found a way to hack money from it now...
    I've been told that players are able to get money out, even if they don't have it available in their account...
    something with putting in a wrong pin from a player and spamming the input key...

    Any one else having this problem?
    Any suggestions? Maybe a setting that stop spamming?

    Thanks!

  26. Post #26
    Title

    August 2009
    301 Posts
    It's Working now... But i'm getting reports that people have found a way to hack money from it now...
    I've been told that players are able to get money out, even if they don't have it available in their account...
    something with putting in a wrong pin from a player and spamming the input key...

    Any one else having this problem?
    Any suggestions? Maybe a setting that stop spamming?

    Thanks!
    How did you get it working? That error is still bugging me.

  27. Post #27
    shawnmd's Avatar
    February 2011
    39 Posts
    How did you get it working? That error is still bugging me.
    I never had that error, my problem was of a different nature. (stupidity)

    One of my players reported this:

    "I'm not sure if your aware of this but the city severs money system is currently bugged i loose the money i have in my pocket when i leave the server, but i can take out however much i want from the ATM in increments of whats currently in their. "

    ???

    Is this just a problem with my server?, and the money system works fine for me and alot of other players, but for others its really buggy...

  28. Post #28

    September 2011
    42 Posts
    I love this addon, it helped complete my robbery system for my server. You can check it out in action if you want.
    IP: 50.31.23.136:27015
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Dumb Dumb x 2 (list)

  29. Post #29

    September 2011
    42 Posts
    -snip-
    Reply With Quote Edit / Delete Reply United States Show Events Dumb Dumb x 1 (list)

  30. Post #30
    Blue and Proud Of It.
    Dennab
    September 2011
    961 Posts
    Would be nice for a SWEP that takes x time to crack the pin of player y there's also z% chance of them being detected and an alarm

    Surface.PlaySound()
    
    Is activated.

  31. Post #31
    StealthPaw
    101kl's Avatar
    March 2008
    492 Posts
    You realise you can withdraw negative amounts, thus giving you money?
    Reply With Quote Edit / Delete Reply Windows 7 Australia Show Events Funny Funny x 1Disagree Disagree x 1 (list)

  32. Post #32
    Blue and Proud Of It.
    Dennab
    September 2011
    961 Posts
    Damn, I was just about to say that..... But it's fun because Server Owners 9/10 times don't know... So :)

  33. Post #33
    Dennab
    March 2010
    102 Posts
    You realise you can withdraw negative amounts, thus giving you money?
    You can't withdraw negative money in v2. It was fixed.
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Zing Zing x 3 (list)

  34. Post #34
    Ruzza's Avatar
    December 2011
    1,137 Posts
    You can brute force this too easy :S

  35. Post #35
    CyberGmod Founder PropHuntv2 Home
    Phoenixf129's Avatar
    May 2009
    1,030 Posts
    You can brute force this too easy :S
    Needs a 3 second cooldown, otherwise you can just utilise lua to run through possible combinations lol.

  36. Post #36

    April 2012
    1 Posts
    I have this up and running on my server but it's non responsive to deposit or withdraws. any ideas?

  37. Post #37
    ash47's Avatar
    March 2010
    738 Posts


    LOVING YOUR ADDON!
    Reply With Quote Edit / Delete Reply Windows 7 Australia Show Events Funny Funny x 1 (list)

  38. Post #38
    ItsThatMatt's Avatar
    July 2010
    121 Posts


    LOVING YOUR ADDON!
    Get off my server! As shown it isn't very practical and can be exploited easy (as I found out).

  39. Post #39
    Ruzza's Avatar
    December 2011
    1,137 Posts
    Get off my server! As shown it isn't very practical and can be exploited easy (as I found out).
    I can fix it for you, $20 :)

  40. Post #40
    Derek_SM's Avatar
    January 2011
    330 Posts
    Get off my server! As shown it isn't very practical and can be exploited easy (as I found out).
    I can fix it for you, $20 :)
    I'll do it for $19.99!