Will pay $5 for someone to help me with creating an easy DarkRP entity.

Hey,
I need a small bit of help creating a machine, kind of like the money printers.

It would spawn a weapon ( eg “lockpick” ) in the same timings that the money printer uses to print money.
So basicly a lockpick maker.

I’m willing to send $5 via paypal to the person who helps me with this.

The current entities are located here on the SVN:


 http://darkrp.googlecode.com/svn/trunk/entities/entities/ 

Thanks

~Chemi

I’ll do it for free… In fact I’ll just show you how…

Really? :smiley:

How? ^^

I have no idea how to code LUA but I would start by modifying the money printer entity. Don’t forget to credit the original author though.

Thats kinda what i did say to begin with D:

Dude, why?

Just make it yourself and ask for help here if you need it.

It’s really, really not that hard.

Wow… you could make that yourself… Just edit the money to lockpicks.

Copy the money printer, and edit it, look for where it makes the money magically spawn ontop of it.

Copy the money_printer folder and call it like, lockpick_spawner or something
then in init.lua change
[lua]function ENT:CreateMoneybag()
if not ValidEntity(self) then return end
if self:IsOnFire() then return end
local MoneyPos = self:GetPos()

if math.random(1, 22) == 3 then self:BurstIntoFlames() end
local moneybag = ents.Create("prop_physics")
moneybag:SetModel("models/props/cs_assault/money.mdl")
moneybag.ShareGravgun = true
moneybag:SetPos(Vector(MoneyPos.x + 15, MoneyPos.y, MoneyPos.z + 15))
moneybag.nodupe = true
moneybag:Spawn()
moneybag:GetTable().MoneyBag = true
local amount = GetGlobalInt("mprintamount")
if amount == 0 then
    amount = 250
end
moneybag:GetTable().Amount = amount
self.sparking = false
timer.Simple(math.random(100, 350), PrintMore, self)

end[/lua]
to
[lua]function ENT:CreateMoneybag()
if not ValidEntity(self) then return end
if self:IsOnFire() then return end
local MoneyPos = self:GetPos()

if math.random(1, 22) == 3 then self:BurstIntoFlames() end
local moneybag = ents.Create("lockpick")
moneybag.ShareGravgun = true
moneybag:SetPos(Vector(MoneyPos.x + 15, MoneyPos.y, MoneyPos.z + 15))
moneybag.nodupe = true
moneybag:Spawn()
timer.Simple(math.random(100, 350), PrintMore, self)

end[/lua]