• ATM Banker
    62 replies, posted
  • Avatar of Fisheater
  • [release] [b]Addon:[/b] ATM Banker v2 (DarkRP Only!) [b]Version:[/b] 2.0 [b]Made By: Fish[/b] [b]****[/b] [b]ScriptEnforcer recommended when using this ATM![/b] [b]****[/b] [b]Description:[/b] 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. [b]Installation:[/b] 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. [b]How to Set-Up (OWNERS/SUPER-ADMINS ONLY!)*[/b] -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 [b]How to Use:[/b] -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. [b]Super-Admin Tab[/b] 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. [b]Anything else I should know about?[/b] 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, [b]IF AND ONLY IF you have their PIN[/b] 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. [b]Interest System:[/b] -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 $$$. [b]Pictures:[/b] [b]PIN Set-Up[/b] [img]http://img593.imageshack.us/img593/6791/16136023.png[/img] [b]ATM Security Login[/b] [img]http://cloud.steampowered.com/ugc/612719780940393114/7D0E879150CDB5776FC371ADC0F4C840294A2688/[/img] [b]Bank Account Manager[/b] [img]http://cloud.steampowered.com/ugc/612719780940402444/B159443BB19242912E971A41655779C117F7A35C/[/img] [b]SuperAdmin Tab[/b] [img]http://cloud.steampowered.com/ugc/612719780940403967/9DD3C5CEB518F9511ECEC83DAE462D5E5B4FEB4D/[/img] [b]Where can I download this?[/b] [url=http://www.garrysmod.org/downloads/?a=view&id=127128][img]http://www.garrysmod.org/img/?t=dll&id=127128[/img][/url] [/release]
  • What happens if two people have the same PIN? [editline]24th November 2011[/editline] And if you guess someones pin, can you clear out their account?
  • Avatar of flutterpie
  • 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!
  • Avatar of Fisheater
  • [QUOTE=Kirad;33422623]What happens if two people have the same PIN? [editline]24th November 2011[/editline] And if you guess someones pin, can you clear out their account?[/QUOTE] 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.
  • Avatar of Madrockon
  • 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.
  • Avatar of Fisheater
  • [QUOTE=Madrockon;33448897]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.[/QUOTE] 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.
  • Avatar of Madrockon
  • Where can I download 2.4.2? Thanks. [editline]26th November 2011[/editline] Nope, its ok I got it. -_- I wasn't concentrating.
  • Avatar of Ploo
  • 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.
  • Avatar of LaughingLeader
  • 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.
  • Avatar of Fisheater
  • [b]ATM BANKER V2 IS NOW RELEASED![/b] [b]MAJOR UPDATES FROM V1:[/b] -Fixed the money exploit -Made it so the ATMs can't be arrested -Recoded most of the Derma -Added custom spawning system [url=http://www.garrysmod.org/downloads/?a=view&id=127128][img]http://www.garrysmod.org/img/?t=dll&id=127128[/img][/url]
  • You need to make it so they only have 3 tries to enter their pin, then there's a 5 minute delay or something.
  • Avatar of Phoenixf129
  • 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?
  • Avatar of Viewer
  • [QUOTE=Phoenixf129;33779424]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?[/QUOTE] 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.
  • Avatar of Phoenixf129
  • [QUOTE=Viewer;33779769]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.[/QUOTE] Okay, lets put this simple for you: DarkRP SuperAdmins.
  • Avatar of Chessnut
  • [QUOTE=Phoenixf129;33786150]Okay, lets put this simple for you: 12 Year old admins/Server owner.[/QUOTE] Fixed.
  • Avatar of Fisheater
  • [QUOTE=Partent Z;33789810]Print the pins clientside or serverside?[/QUOTE] The server only sends the pins to the Super-Admin that pressed the button.
  • Avatar of shawnmd
  • [QUOTE=Viewer;33779769]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.[/QUOTE] 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?
  • Avatar of Fisheater
  • [QUOTE=shawnmd;33810244]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?[/QUOTE] 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.
  • [QUOTE=Fisheater;33822866]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.[/QUOTE] [lua]22:34:03 L 01/31/2012 - 23:33:56: Lua Error: [@RunString:2] Tried to use a NULL entity![/lua] When spawning a ATM, it appears to save fine (creates the file).
  • Avatar of shawnmd
  • 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!
  • [QUOTE=shawnmd;34526128]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![/QUOTE] How did you get it working? That error is still bugging me.
  • Avatar of shawnmd
  • [QUOTE=Mrkrabz;34527220]How did you get it working? That error is still bugging me.[/QUOTE] 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...
  • 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
  • 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 [LUA] Surface.PlaySound() [/LUA] Is activated.