Thanks for Your Nice Comment Keep in mind that you will need to know some basic lua to use that model up there because u need to change it over Which i can do for you just add me on skype or steam
awesome so hopefully the ATMs have security fixes now correct?
[QUOTE=nickster50;42270133]awesome so hopefully the ATMs have security fixes now correct?[/QUOTE]
Nick they do not though I'm willing to make some changes to then add me on steam
How can you make em to be saved on the map? Like if the server restarts/crash, it will spawn back again.
[QUOTE=Zackyo;42283458]How can you make em to be saved on the map? Like if the server restarts/crash, it will spawn back again.[/QUOTE]
Hey Zackyo,
You place atm's around the map! then open up 1 and click ADMIN and Click Save.
This will automatically spawn in ATM's When the server restarts
These are not your models are they.
[QUOTE=helplesskitty;42304173]These are not your models are they.[/QUOTE]
He never said they were his.
"If you will like the ATM's To look a bit more realistic you can download this model here: http://steamcommunity.com/sharedfile...searchtext=ATM" - it's on workshop, and the credit is given correctly.
Stop whining.
It's so annoying when 4 year old's ask stupid questions like that
there on steam Workshop from a older addon called "Aperbank"
You can use them or fell free to use the stranded model with the addon (Ticket Machine)
I have an error, maybe you can help me.
This is the error:
[lua]
[ERROR] addons/darkrp_atm/lua/autorun/server/atmspawn.lua:17: bad argument #1 to 'pairs' (table expected, got nil)
1. pairs - [C]:-1
2. LoadATMs - addons/darkrp_atm/lua/autorun/server/atmspawn.lua:17
3. fn - addons/darkrp_atm/lua/autorun/server/atmspawn.lua:52
4. unknown - addons/ulib/lua/ulib/shared/hook.lua:183
[/lua]
And this is the code:
[QUOTE][CODE]
hook.Add( "PlayerInitialSpawn", "PSNoteBank", function( ply )
ply:ChatPrint( "This server uses DarkRP ATM Banker!" )
end )
local function CreateATMMachine( pos, ang )
local ATM = ents.Create( "ATM_Machine" )
ATM:SetPos( pos )
ATM:SetAngles( ang )
ATM:Spawn()
ATM:Activate()
end
local function LoadATMs()
if ( file.Exists( "ATM/"..string.lower( game.GetMap() )..".txt", "DATA" ) ) then
local ATMs = util.JSONToTable( file.Read( "ATM/" .. string.lower( game.GetMap() ) .. ".txt" ) )
for id, tab in pairs( ATMs ) do
CreateATMMachine( tab.pos, tab.ang )
end
else
MsgN("ATM Spawn file is missing for map " .. string.lower( game.GetMap() ) )
end
end
concommand.Add( "rp_atm_removespawns", function( ply )
if ( IsValid( ply ) && !ply:IsUserGroup("superadmin") ) then return end
file.Delete( "ATM/"..string.lower( game.GetMap() )..".txt" )
end )
concommand.Add( "rp_atm_savespawns", function( ply )
if ( IsValid( ply ) && !ply:IsUserGroup("superadmin") ) then return end
local tableOfATMs = {}
for k, v in pairs( ents.FindByClass( "ATM_Machine" ) ) do
table.insert( tableOfATMs, { ang = v:GetAngles(), pos = v:GetPos() } )
end
if ( !file.IsDir( "ATM", "DATA" ) ) then file.CreateDir( "ATM" ) end
file.Write( "ATM/"..string.lower( game.GetMap() ) .. ".txt", util.TableToJSON( tableOfATMs ) )
end )
concommand.Add( "rp_atm_respawnall", function( ply )
if ( IsValid( ply ) && !ply:IsUserGroup("superadmin") ) then return end
for k, v in pairs( ents.FindByClass( "ATM_Machine" ) ) do v:Remove() end
LoadATMs()
end )
concommand.Add( "rp_atm_removeall", function( ply )
if ( IsValid( ply ) && !ply:IsUserGroup("superadmin") ) then return end
for k, v in pairs( ents.FindByClass( "ATM_Machine" ) ) do v:Remove() end
end )
hook.Add( "InitPostEntity","atm", function()
LoadATMs()
end )[/CODE][/QUOTE]
[QUOTE=Andre_;42354380]I have an error, maybe you can help me.
This is the error:
[lua]
[ERROR] addons/darkrp_atm/lua/autorun/server/atmspawn.lua:17: bad argument #1 to 'pairs' (table expected, got nil)
1. pairs - [C]:-1
2. LoadATMs - addons/darkrp_atm/lua/autorun/server/atmspawn.lua:17
3. fn - addons/darkrp_atm/lua/autorun/server/atmspawn.lua:52
4. unknown - addons/ulib/lua/ulib/shared/hook.lua:183
[/lua]
And this is the code:[/QUOTE]
G'Day how are you
Add me on skype : alexander1.21
or
Steam: iamamunao
[editline]6th October 2013[/editline]
Update:
Fixed Major Security bugs.
Fixed issue with some code causing some lua errors.
(I am now no longer working on this addon, Though am providing support)
Update:
Now fully working 100% no bugs.
Fixed More Security Bugs.
Fixed more lua code issues.
Next Update:
Web interface for atm's meaning you can access your atm's outside of the server.
USER'S that are having issues with this addon please email me at
[email]alexmunao1@gmail.com[/email]
Well, I recently got this, and I'm trying to get it to work. But nothing's working, the [USE] key doesn't do anything.
When I try depositing money into the ATM, I get this error:
[lua][ERROR] addons/darkrp_atm/lua/entities/atm_machine/init.lua:85: attempt to call method 'AddMoney' (a nil value)
1. unknown - addons/darkrp_atm/lua/entities/atm_machine/init.lua:85
2. unknown - lua/includes/modules/concommand.lua:69
[/lua]
I think that DarkRP has changed AddMoney to addMoney, so someone has to update it for the newest version of DarkRP.
[QUOTE=Persious;42760454]I think that DarkRP has changed AddMoney to addMoney, so someone has to update it for the newest version of DarkRP.[/QUOTE]
Changed it myself. There were 2 instances of it in that lua file and it's working properly now. Thanks.
Major Update:
Now Working With DarkRP 2.5.0 due to the "addMoney" Hook.
A New Bruteforcer has been found for this you can disable this by adding
Add
sv_allowcslua 0
To your server.cfg or run in your rcon whilst admin.
[QUOTE=Alex Munao;42762220]Major Update:
Now Working With DarkRP 2.5.0 due to the "addMoney" Hook.
A New Bruteforcer has been found for this you can disable this by adding
Add
sv_allowcslua 0
To your server.cfg or run in your rcon whilst admin.[/QUOTE]
Just perform some kind of action on the player after x attempts?
AperBank addon s being restored currently. I believe it's best not to use models of a soon to be active addon.
[QUOTE=ms333;42762559]Just perform some kind of action on the player after x attempts?[/QUOTE]
Do u mean like if they get the password wrong more then 3 times to ban them or something like that as i just did that for a client. Though i am not making anymore modification to this addon.
Alex. Remove all use of my models... Not once did you ask permission.
AperBank is currently being fixed so i do not want you using the models.
Science they are currently on the steam workshop and not uploaded by me your going to have to ask them to get rid of them.
[lua]RunConsoleCommand( "rp_atm_login", util.CRC( myText1:GetValue() ), List.CurData )[/lua]
Why CRC? Do you think that makes it more secure or something? The exact opposite is happening (in theory).
Why are admins able to see everyone's PIN number? That's mental.
No. I am asking you.
These models are not for your use. I don't see your system being called AperBank so why should you use them.
There are many other models around. Use them.
[QUOTE=FPtje;42817280][lua]RunConsoleCommand( "rp_atm_login", util.CRC( myText1:GetValue() ), List.CurData )[/lua]
Why CRC? Do you think that makes it more secure or something? The exact opposite is happening (in theory).
Why are admins able to see everyone's PIN number? That's mental.[/QUOTE]
Yah Finally have a reply from FPtje
I'm currently working on a better version that does not allow any admins to check pin codes etc.
Please be aware that this is currently a fix from the older version. and has minor changes.
[editline]11th November 2013[/editline]
[QUOTE=Science;42817281]No. I am asking you.
These models are not for your use. I don't see your system being called AperBank so why should you use them.
There are many other models around. Use them.[/QUOTE]
Science i will remove the image and the link though could u please give me an example of an other atm model that i could use?
BTW there are many servers using this for Example
Fallout Shealter Australia are using your model.
[url]http://thefalloutshelterau.com/[/url]
For a second there I thought you ripped off the Chase logo
[editline]10th November 2013[/editline]
Oh you removed it
[QUOTE=Alex Munao;42260881]
HAD TO REMOVE THE FUCKING REALISTIC ATM MODEL BECAUSE OF SCIENCE.....
[/quote]
I think someone is a bit mad.
LOL.....
I'm not mad at all.
I think all my other 1000 subscribers of my addon are a bit mad.
Sorry, you need to Log In to post a reply to this thread.