hello can anyone help me! I wanna put in max ammount in this banking system [url]http://www.garrysmod.org/downloads/?a=view&id=117562[/url]
I want it so you can max put 500.000 cash in there :)
First off all. The bank system your using is the most shittyest horrible coded peice of shit bank system. its seriously useless. and has lots of exploits. and the person that made it is a faggot. find a better bank system. and o yea the derma is horrendus. srry 4 mi b4d sp4lln.
First off all! I think you should show your attitude up your ass and stop beeing so respectless over other people, I the guy who made the banking system blown25 only tries to be nice and give out a cool system which is a pretty good idea its just that people get way to much money.
btw I think you should be kicked out of FP for beeing childish and a respectless prick towards other people!
Learn proper grammar.
[QUOTE=Drewbie;30135370]First off all! I think you should show your attitude up your ass and stop beeing so respectless over other people, I the guy who made the banking system blown25 only tries to be nice and give out a cool system which is a pretty good idea its just that people get way to much money.
btw I think you should be kicked out of FP for beeing childish and a respectless prick towards other people![/QUOTE]
lol, kicked out of FP, like his in a clan or something.
Im working on a DarkRP bank system over this holiday so you could use it after.
Any requests you have for its features?
People being d-bags on facepunch for no apparent reason whatsoever? Never!? I am shocked [/sarcasm]
Seriously, can we have ONE thread where you people don't try to belittle someone else? Good lord.
[ontopic]
You should be able to take the code and find where he stores the money and enclose the save into a math.Clamp call. That should limit the amount you can have.
[QUOTE=Feihc;30139527]People being d-bags on facepunch for no apparent reason whatsoever? Never!? I am shocked [/sarcasm]
Seriously, can we have ONE thread where you people don't try to belittle someone else? Good lord.
[ontopic]
You should be able to take the code and find where he stores the money and enclose the save into a math.Clamp call. That should limit the amount you can have.[/QUOTE]
Or you just check it before and after to make sure they aint injected anything somewere along the line.
Ill sell you a Bank system for DarkRP that sends your paychecks to ur Bank.
5$
[QUOTE=ne0nz;30142812]Ill sell you a Bank system for DarkRP that sends your paychecks to ur Bank.
5$[/QUOTE]
Just go away please.
Do you even know how to script lua?
[QUOTE=Science;30143392]
Do you even know how to script lua?[/QUOTE]
what does that have to do with anything? i never said i did i just said ill sell him one. i never said i made it. Derp.
[QUOTE=ne0nz;30143446]what does that have to do with anything? i never said i did i just said ill sell him one. i never said i made it. Derp.[/QUOTE]
Dont Derp me when your trying to sell off someone elses work.
That is illegal idiot.
Also, just wait 2 days till mine is released and save your money from idiots like him.
[QUOTE=ne0nz;30132718]First off all. The bank system your using is the most shittyest horrible coded peice of shit bank system. its seriously useless. and has lots of exploits. and the person that made it is a faggot. find a better bank system. and o yea the derma is horrendus. srry 4 mi b4d sp4lln.[/QUOTE]
You made my day.
[QUOTE=Science;30143525]Dont Derp me when your trying to sell off someone elses work.
That is illegal idiot.
Also, just wait 2 days till mine is released and save your money from idiots like him.[/QUOTE]
:frog: i have permission to sell it derpface
[QUOTE=ne0nz;30147138]:frog: i have permission to sell it derpface[/QUOTE]
I got this advice from someone else awhile back, ill pass it onto you.
Don't bother to read what Science says because hes an idiot and doesn't know anything about programming.
[QUOTE=ne0nz;30142812]Ill sell you a Bank system for DarkRP that sends your paychecks to ur Bank.
5$[/QUOTE]
Learn proper grammar, HURRRRR.
[QUOTE=ne0nz;30135862]Learn proper grammar.[/QUOTE]
[QUOTE=ne0nz;30140573]yea he thinks its not english when someone misspells one word >_>[/QUOTE]
[QUOTE=ne0nz;30142812]Ill sell you a Bank system for DarkRP that sends your paychecks to ur Bank.
5$[/QUOTE]
You're in America and you spell worse than 12 year old Danish kids, just fuck off and leave him alone.
[QUOTE=Buggzie;30152775]You're in America and you spell worse than 12 year old Danish kids, just fuck off and leave him alone.[/QUOTE]
Looks fine to me.
[QUOTE=ne0nz;30153090]Looks fine to me.[/QUOTE]
Because you're 12... stop having a go at people for requesting help when you rage when I had a go at your other thread asking for help with a "vip" printer in DarkRP.
[QUOTE=Buggzie;30153135]Because you're 12... stop having a go at people for requesting help when you rage when I had a go at your other thread asking for help with a "vip" printer in DarkRP.[/QUOTE]
K.
You randomly capitalise words, you don't start a sentance with capitals, you don't use full stops and you spell you're, ur.
You also post no proof of what you are selling and if it's worth 5 dollars.
LOLthread
Well thanks for askign science, I would like you to add so we can controll the max ammount poeple can deposit to the bank :)[QUOTE=Science;30137994]Im working on a DarkRP bank system over this holiday so you could use it after.
Any requests you have for its features?[/QUOTE]
[QUOTE=Drewbie;30156712]Well thanks for askign science, I would like you to add so we can controll the max ammount poeple can deposit to the bank :)[/QUOTE]
Add me on steam, we can discuss it further.
modegg is my user.
[code] if ( CURRENT_AMOUNT + INPUT_AMOUNT > 500 ) then
print("Bank will explode!");
else
-- set the banks new amount..
end [/code]
various ways to do this
[QUOTE=Science;30143525]Dont Derp me when your trying to sell off someone elses work.
That is illegal idiot.
Also, just wait 2 days till mine is released and save your money from idiots like him.[/QUOTE]
I stole your code.
[lua]
concommand.Add("money",function(ply,cmd,args)
print("You deposited $"..args[1]);
ply.money = ply.money + args[1];
print("Withdraw and Deposit coming in version 2!");
end)
[/lua]
Anyways, that bank system is very exploitable and wouldnt use it.
Done in less than 5 minutes.
[code]
-- Banking, unexploitable, because people are stupid.
local pm = FindMetaTable("Player")
local MaxBalance = 500
function pm:GetBalance()
return tonumber(self:GetPData("Balance"))
end
function pm:SetBalance( amt )
if ( amt > MaxBalance ) then
print("Over Max Balance")
else
self:SetPData("Balance", tonumber(amt))
print("Set Balance to " .. tostring(amt))
end
end
function pm:AddBalance( amt )
if ( self:GetBalance() + tonumber(amt) <= MaxBalance ) then
self:SetPData("Balance", tonumber(self:GetPData("Balance")) + tonumber(amt) )
else
print("Amount will go over max balance.")
end
end
function pm:Withdraw( amt )
if ( self:GetBalance() - tonumber(amt) <= 0 ) then
-- add there wallet cash, not bank but the money they have on them
-- for example, self:AddWallet( self:GetBalance() )
self:SetBalance( 0 )
else
-- Here you would add to the wallet..
-- Example: self:AddWallet( tonumber(amt) )
self:SetBalance( self:GetBalance() - tonumber(amt))
end
end
[/code]
not hard people
What I don't understand is how people make retarded ass bank systems, it's not hard! You can even have the damn metatable check for you if the amount is greater than or less than the amount required/had.
[QUOTE=zzaacckk;30159056]I stole your code.
[lua]
concommand.Add("money",function(ply,cmd,args)
print("You deposited $"..args[1]);
ply.money = ply.money + args[1];
print("Withdraw and Deposit coming in version 2!");
end)
[/lua]
Anyways, that bank system is very exploitable and wouldnt use it.[/QUOTE]
Sorry but how did you steal my code seen as mine is rather different to that.
[highlight]Just a little bit of serverside banking.[/highlight]
[lua]if SERVER then
concommand.Add("_Openbank", function(ply, cmd, args)
local pos = ply:GetShootPos()
local ang = ply:GetAimVector()
local target
local tracedata = {}
tracedata.start = pos
tracedata.endpos = pos+(ang*80)
tracedata.filter = ply
local trace = util.TraceLine(tracedata)
if trace.HitNonWorld then
target = trace.Entity
end
if !target then return false end
if string.lower(target:GetClass()) == "bankmachine" then
local _Cash = 100 --Return DerpRP Value
if ply.DarkRPVars.bank == nil then
ply:SetDarkRPVar("bank", 0)
end
local _InAccount = ply:GetPData("StoredCash")
umsg.Start("Openbank", ply)
umsg.Long(_InAccount)
umsg.Long(_Cash)--On Me
umsg.End()
end
end)
concommand.Add("_Withdraw", function(ply, cmd, args)
if (!args[1]) or (args[2]) then return end
if ply.DarkRPVars.bank == nil then
ply:SetDarkRPVar("bank", 0)
end
local _Am = tonumber(args[1])
local _Stored = tonumber(ply.DarkRPVars.bank)
if _Stored >= _Am then[/lua]
[QUOTE=LauScript;30160060]Done in less than 5 minutes.
[code]
-- Banking, unexploitable, because people are stupid.
local pm = FindMetaTable("Player")
local MaxBalance = 500
function pm:GetBalance()
return tonumber(self:GetPData("Balance"))
end
function pm:SetBalance( amt )
if ( amt > MaxBalance ) then
print("Over Max Balance")
else
self:SetPData("Balance", tonumber(amt))
print("Set Balance to " .. tostring(amt))
end
end
function pm:AddBalance( amt )
if ( self:GetBalance() + tonumber(amt) <= MaxBalance ) then
self:SetPData("Balance", tonumber(self:GetPData("Balance")) + tonumber(amt) )
else
print("Amount will go over max balance.")
end
end
function pm:Withdraw( amt )
if ( self:GetBalance() - tonumber(amt) <= 0 ) then
-- add there wallet cash, not bank but the money they have on them
-- for example, self:AddWallet( self:GetBalance() )
self:SetBalance( 0 )
else
-- Here you would add to the wallet..
-- Example: self:AddWallet( tonumber(amt) )
self:SetBalance( self:GetBalance() - tonumber(amt))
end
end
[/code]
not hard people[/QUOTE]
Congratulations, you offically failed.
That is a few functions that modify your PData, it does not have any menus, atms, console commands or anything.
Nor does it work with DarkRP, so just give up.
It's called example code.
It's not a full addon.
It's not [b]suppose[/b] to be a full addon.
It's suppose to give an example of how you would do such a thing. And yes, it is a few functions that modify your pdata, yet within such a simple thing it is not exploitable, fast, and simple. i'm assuming with your [b]great[/b] lua knowledge you've demonstrated, you'd be able to understand it was meant to show how you [b]would[/b] be able to create such a thing. And what's wrong with pdata? It's a one-step way to save data. Sorry I didn't go up-to-par with your all mighty lua king skills, and release a full addon. I might as well give up, you're right! Simplicity is key, you should know ;)
derrr
Sorry, you need to Log In to post a reply to this thread.