• money printers in dark rp!
    36 replies, posted
I would be happy if anyone could code a printer for me so the printer stores the money it prints and u can withdraw the money by clicking E on it.
Cool copy of gangwars here but I am 100% positive I can do this. Add me on steam: modegg I'll send you WORKING code for this tomorrow. [highlight]INB4 King/Queen Flawless Posts To Try And Put Me Down[/highlight] [editline]14th March 2011[/editline] If you ain't copying gangwars ok, they don't own the idea so I'll do it.
[QUOTE=RTM xBEASTx;28606893]Cool copy of gangwars here but I am 100% positive I can do this. Add me on steam: modegg I'll send you WORKING code for this tomorrow. [highlight]INB4 King/Queen Flawless Posts To Try And Put Me Down[/highlight] [editline]14th March 2011[/editline] If you ain't copying gangwars ok, they don't own the idea so I'll do it.[/QUOTE] Dont worry, King flawless got a ban he deserved.
Yes but he made an alt account.
[b]INB4 RTM fails to make it[/b] [editline]15th March 2011[/editline] [b]Without ripping someone else's code and taking credit[/b]
As I said. Won't be ripped and will work 100%
I made one if you want it, here's a pic: [img]http://cloud.steampowered.com/ugc/578916639660217496/4139BEDD3E6DB1185AB8B93667D2E5DFB3A3C729/[/img]
That's the old darkrp ain't it??
[QUOTE=RTM xBEASTx;28615765]That's the old darkrp ain't it??[/QUOTE] I don't see how that would matter if it was
Cause the codes are different. The new ones use 3D2D and a few other changes.
[QUOTE=RTM xBEASTx;28616606]Cause the codes are different. The new ones use 3D2D and a few other changes.[/QUOTE] Thats the client side part of the entity, and has nothing to do with the code, that stores/outputs the money. and please define "a few other changes" to me, cause i would like to know what they are.
[QUOTE=RTM xBEASTx;28616606]Cause the codes are different. The new ones use 3D2D and a few other changes.[/QUOTE] Because a few tiny changes mean that it wont work?
Queen. Please just leave the thread of post what he is asking for. None of your posts are of a use to this guy so please just help or go Do you know how to Lua script anyway?
Whats lua?
[url]http://www.garrysmod.org/downloads/?a=view&id=100638[/url] Think that's what you're after
[QUOTE=mcormack1994;28617898][url]http://www.garrysmod.org/downloads/?a=view&id=100638[/url] Think that's what you're after[/QUOTE] That aint it. Just testing my code now.
[QUOTE=RTM xBEASTx;28618227]That aint it. Just testing my code now.[/QUOTE] How ever not? He wants it to store money that is printed. My mod includes this, does it not? I think you will find it does.
He wants the printer to store it. not a seperate thing. [editline]15th March 2011[/editline] Done. [img]http://dl.dropbox.com/u/8718166/gm_construct0026.jpg[/img] [img]http://dl.dropbox.com/u/8718166/gm_construct0027.jpg[/img] [B]DarkRP/entities/entities/money_printer/cl_init[/B] [lua]include("shared.lua") function ENT:Initialize() end function ENT:Draw() self.Entity:DrawModel() local Pos = self:GetPos() local Ang = self:GetAngles() local owner = self.dt.owning_ent owner = (ValidEntity(owner) and owner:Nick()) or "unknown" amount = self:GetDTInt(0) or 0 surface.SetFont("HUDNumber5") local TextWidth = surface.GetTextSize("Money printer") local TextWidth2 = surface.GetTextSize(owner) local TextWidth3 = surface.GetTextSize("Contains: $"..amount) Ang:RotateAroundAxis(Ang:Up(), 90) cam.Start3D2D(Pos + Ang:Up() * 11.5, Ang, 0.11) draw.WordBox(2, -TextWidth*0.5, -30, "Money printer", "HUDNumber5", Color(140, 0, 0, 100), Color(255,255,255,255)) draw.WordBox(2, -TextWidth2*0.5, 18, owner, "HUDNumber5", Color(140, 0, 0, 100), Color(255,255,255,255)) draw.WordBox(2, -TextWidth3*0.5, 66, "Contains: $"..amount, "HUDNumber5", Color(140, 0, 0, 100), Color(255,255,255,255)) cam.End3D2D() end function ENT:Think() end[/lua] [B]DarkRP/entities/entities/money_printer/init[/B] [lua]-- RRPX Money Printer reworked for DarkRP by philxyz AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") local PrintMore function ENT:Initialize() self:SetModel("models/props_c17/consolebox01a.mdl") self:PhysicsInit(SOLID_VPHYSICS) self:SetMoveType(MOVETYPE_VPHYSICS) self:SetSolid(SOLID_VPHYSICS) self:SetUseType(SIMPLE_USE) local phys = self:GetPhysicsObject() if phys:IsValid() then phys:Wake() end self.sparking = false self.damage = 100 self.IsMoneyPrinter = true timer.Simple(27, PrintMore, self) self:SetDTInt(0,0) end function ENT:OnTakeDamage(dmg) if self.burningup then return end self.damage = (self.damage or 100) - dmg:GetDamage() if self.damage <= 0 then local rnd = math.random(1, 10) if rnd < 3 then self:BurstIntoFlames() else self:Destruct() self:Remove() end end end function ENT:Destruct() local vPoint = self:GetPos() local effectdata = EffectData() effectdata:SetStart(vPoint) effectdata:SetOrigin(vPoint) effectdata:SetScale(1) util.Effect("Explosion", effectdata) Notify(self.dt.owning_ent, 1, 4, "Your money printer has exploded!") end function ENT:BurstIntoFlames() Notify(self.dt.owning_ent, 0, 4, "Your money printer is overheating!") self.burningup = true local burntime = math.random(8, 18) self:Ignite(burntime, 0) timer.Simple(burntime, self.Fireball, self) end function ENT:Fireball() if not self:IsOnFire() then self.burningup = false return end local dist = math.random(20, 280) -- Explosion radius self:Destruct() for k, v in pairs(ents.FindInSphere(self:GetPos(), dist)) do if not v:IsPlayer() and not v.IsMoneyPrinter then v:Ignite(math.random(5, 22), 0) end end self:Remove() end PrintMore = function(ent) if ValidEntity(ent) then ent.sparking = true timer.Simple(3, ent.CreateMoneybag, ent) end end 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 amount = GetConVarNumber("mprintamount") if amount == 0 then amount = 250 end self.sparking = false self:SetDTInt(0, self:GetDTInt(0) + amount ) timer.Simple(math.random(100, 350), PrintMore, self) end function ENT:Think() if not self.sparking then return end local effectdata = EffectData() effectdata:SetOrigin(self:GetPos()) effectdata:SetMagnitude(1) effectdata:SetScale(1) effectdata:SetRadius(2) util.Effect("Sparks", effectdata) end function ENT:Use( activator, caller ) local amount = self:GetDTInt(0) if amount != 0 then activator:AddMoney(amount or 0) Notify(activator, 0, 4, "You have recovered " .. CUR .. (self:GetDTInt(0) or 0) .. "!") self:SetDTInt(0,0) end end [/lua] 100% Working and tested. 100% Modified by me. [editline]15th March 2011[/editline] Fixed the misalignment of the "Contains: $..."
Where did you rip that from?
Funny guy. Google, Yahoo, Facepunch, what ever. You wont find the code anywhere but here, cause i made it myself.
I found it in darkrp only this one has like 5 lines changed
Yes, so what? If thats all that needs changing then thats fine. If i needed to go out my way and spend extra time on it i would, i wont do something to prove a point to you.
Beast you really are a complete fucking idiot
[QUOTE=elffaWlfoR;28622439]Beast you really are a complete fucking idiot[/QUOTE] What? Explain please. I dont normally listen to a 2 poster but seen as your views are so strong against me over the internet, please tell me why?
[QUOTE=RTM xBEASTx;28620724] [editline]15th March 2011[/editline] Done. 100% Working and tested. 100% Modified by me. [editline]15th March 2011[/editline] Fixed the misalignment of the "Contains: $..."[/QUOTE] Hey thank's I was going to make it by my self but you made it, i appreciate it! :)
[QUOTE=nexusowner;28622865]Hey thank's I was going to make it by my self but you made it, i appreciate it! :)[/QUOTE] Thank you for the thank you. At least someone appreciates the work that i try to do.
Oh my god, RTM and Flawless. You are like 2 teenage girls, who both are on their periods and just walked into eachother. Please, for the love of god - stop bitching. Both of you. No one wants to be bothered with 20 posts with you guys going at it. If you really do have the desire to yell at the other person - do private messages. Please.
But I am a teenage girl :sonia:
Point proven. You are a complete idiot. This thread can die now I solved it, no need to QQ that I won.
Good job Beast,
Sorry, you need to Log In to post a reply to this thread.