+ Reply to Thread
Page 2 of 7 FirstFirst 1 2 3 4 ... LastLast
Results 11 to 20 of 61

Thread: Wire Money Detector for RP

  1. #11
    Faron's Assistant



    Anticept has a spectacular aura about Anticept has a spectacular aura about Anticept has a spectacular aura about Anticept's Avatar
    Join Date
    Feb 2008
    Location
    Ohio, USA
    Posts
    1,238

    Default Re: Wire Money Detector for RP in wiremodextras SVN

    Not to bash phil, but now that i just noticed this, you broke a rule of inclusion...

    Cannot commit anything which supplies or relies on a DLL or another mod. Not all hosts wan't dll's running on their systems, and SVN doesn't always give a choice. We don't need broken addons either, should the host decide not to install a prerequisite.
    This relies on RP gamemode to function.

    The reason why it's not allowed is that gmod is just too damn finicky. Everything should either rely on itself, or rely on wiremod, that way we can prevent as few conflicts as possible, period.
    Signature.

  2. #12
    Inactive samohan is on a distinguished road samohan's Avatar
    Join Date
    Feb 2009
    Posts
    10

    Default Re: Wire Money Detector for RP in wiremodextras SVN

    If it could only be made so you can right-click one or more props/entities and then assign values to them instead of it being fixed on the RP money, Shame I don't know a thing about Lua...

  3. #13
    E2 Optimizer
    chinoto is on a distinguished road chinoto's Avatar
    Join Date
    Apr 2008
    Location
    In the skybox, lost another contraption...
    Posts
    1,714

    Default Re: Wire Money Detector for RP in wiremodextras SVN

    RFID kinda does what you are talking about.

    (\__/) <- Put this bunny in your sig and help him to rule the world!
    (='.'=) PM me code and I'll send it back optimized if possible. (I find it fun dammit!)
    (")_(") Expression Gate 2 Wiki Help us update the wiki! Together we can make it more up to date than the SVN! ...

  4. #14
    Wirererer philxyz is on a distinguished road philxyz's Avatar
    Join Date
    Mar 2007
    Location
    Northampton, England
    Posts
    371

    Default Re: Wire Money Detector for RP in wiremodextras SVN

    Ah, sorry about that Anticept. I will remove it if you prefer...

    ...edit: Agreed, and done.

    Update UWSVN to remove.


    Here's the addon:

    http://garrysmod.org/downloads/?a=view&id=62975
    Last edited by philxyz; 02-18-2009 at 04:08 PM.

  5. #15
    Faron's Assistant



    Anticept has a spectacular aura about Anticept has a spectacular aura about Anticept has a spectacular aura about Anticept's Avatar
    Join Date
    Feb 2008
    Location
    Ohio, USA
    Posts
    1,238

    Default Re: Wire Money Detector for RP in wiremodextras SVN

    Quote Originally Posted by philxyz View Post
    Ah, sorry about that Anticept. I will remove it if you prefer...

    ...edit: Agreed, and done.

    Update UWSVN to remove.


    Here's the addon:

    Wire RP Money Detector Download!
    Much appreciated.
    Signature.

  6. #16
    Lurker Daedalus969 is on a distinguished road Daedalus969's Avatar
    Join Date
    Sep 2009
    Posts
    48

    Default Re: Wire Money Detector for RP

    I know that this was awhile ago, but the newest update for darkrp broke this reader. Anyone know of a possible fix?

  7. #17
    Wire Sofaking Donkie is on a distinguished road Donkie's Avatar
    Join Date
    May 2008
    Location
    Sweden
    Posts
    1,181

    Default Re: Wire Money Detector for RP

    Working on it.

    Edit:
    Cant upload it to garrysmod.org couse it keeps telling me its not a .zip. Anyways, anyone is free to upload it for me.
    Attached Files
    Last edited by Donkie; 01-31-2010 at 01:40 AM.
    Hurr

  8. #18
    Lurker Daedalus969 is on a distinguished road Daedalus969's Avatar
    Join Date
    Sep 2009
    Posts
    48

    Default Re: Wire Money Detector for RP

    Quote Originally Posted by Donkie View Post
    Working on it.

    Edit:
    Cant upload it to garrysmod.org couse it keeps telling me its not a .zip. Anyways, anyone is free to upload it for me.
    Haven't tested this yet, but since it looks like you know what you're doing, would you be able to fix the shipment reader as well?

  9. #19
    Wire Sofaking Donkie is on a distinguished road Donkie's Avatar
    Join Date
    May 2008
    Location
    Sweden
    Posts
    1,181

    Default Re: Wire Money Detector for RP

    Hmm, do you mean the E2functions for it? Google cant find anything else than that. I shall try fix em.

    Code:
    e2function string entity:shipmentContents()
    	if (!validEntity(this) or this:GetClass() != "spawned_shipment") then return "" end
    	return this.dt.contents
    end
    
    e2function number entity:shipmentAmount()
    	if (!validEntity(this) or this:GetClass() != "spawned_shipment") then return -1 end
    	return this.dt.count
    end
    
    e2function number entity:moneyAmount()
    	if (!validEntity(this)) then return -1 end
    	if this:GetClass()=="spawned_money" then
    		return this.Amount
    	else
    		return -1
    	end
    end
    
    That should work for you.
    Hurr

  10. #20
    No u

    Divran is a jewel in the rough Divran is a jewel in the rough Divran is a jewel in the rough Divran is a jewel in the rough Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    2,456

    Default Re: Wire Money Detector for RP

    I've already made RP E2 functions

    Code:
    AddCSLuaFile("darkrpfunctions.lua")
    
    e2function string entity:shipmentContents()
    	if (!validEntity(this) or this:GetClass() != "spawned_shipment") then return "" end
    	return this:GetNWString("contents")
    end
    
    e2function number entity:shipmentAmount()
    	if (!validEntity(this) or this:GetClass() != "spawned_shipment") then return -1 end
    	return this:GetNWInt("count")
    end
    
    e2function number entity:moneyAmount()
    	if (!validEntity(this)) then return -1 end
    	if (this:GetTable().MoneyBag) then
    		return this:GetTable().Amount
    	else
    		return -1
    	end
    end
    
    Yours look similar...

    Edit: Oh wait the latest DarkRP update broke this way of doing it so you took my E2 functions and edited them a little so that they work? Is that it?
    PewPew (New GCombat) | SVN Tutorial | EGP v3
    MY SVN LINK:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    


    Thanks for clicking, everyone!
    http://www.minerwars.com/?aid=927
    But if I get even more clicks, I get the full game, so keep at it!

+ Reply to Thread
Page 2 of 7 FirstFirst 1 2 3 4 ... LastLast

LinkBacks (?)

  1. 02-01-2010, 11:05 PM

Similar Threads

  1. Request - darkrp money reader
    By Briam in forum Ideas & Suggestions
    Replies: 14
    Last Post: 09-13-2009, 07:40 AM
  2. Money detector in Offical svn
    By Donkie in forum Ideas & Suggestions
    Replies: 6
    Last Post: 05-05-2009, 01:26 PM
  3. RP money handler.
    By Donkie in forum Ideas & Suggestions
    Replies: 7
    Last Post: 02-15-2009, 09:59 AM
  4. Health Detector?
    By cpf in forum Ideas & Suggestions
    Replies: 4
    Last Post: 11-15-2007, 11:12 AM
  5. More detector tools
    By andy1976uk in forum Ideas & Suggestions
    Replies: 4
    Last Post: 07-17-2007, 01:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots