1. Post #1
    Insane21M's Avatar
    March 2011
    58 Posts
    When I press F4 and go to my darkRP menu, click weapons/entities, and try to buy ammo, It won't let me.
    I know it's because I'm using Mad Cow Weapons but is there a fix for this or anything?

    Thanks

    Add me on steam:
    http://steamcommunity.com/id/InsaneMPGH

  2. Post #2
    Gold Member
    cis.joshb's Avatar
    January 2011
    1,854 Posts
    Go into mad cow's weapons and change the ammo to smg1 for rifles and pistol for pistols and smgs.

  3. Post #3
    Insane21M's Avatar
    March 2011
    58 Posts
    Go into mad cow's weapons and change the ammo to smg1 for rifles and pistol for pistols and smgs.
    Could you please explain a little more indepth?

  4. Post #4
    RTM xBEASTx's Avatar
    September 2010
    563 Posts
    Go into mad cow's weapons and change the ammo to smg1 for rifles and pistol for pistols and smgs.
    Stupid reply. There are too many weapons to change them all.

    I'll give you a code to add new ammo types tomorrow, I'm in bed now so I'll hunt around and get back to you on steam tomorrow.
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Dumb Dumb x 2 (list)

  5. Post #5
    jrj996's Avatar
    July 2009
    1,656 Posts
    You can add a new function or entity? I'm not sure I haven't looked at DarkRP much but if you go into a weapons shared.lua file it'll tell you what ammo it uses then when you make a function for the weapons you can do something like uh
    function buyagunfag(ply)
    if ply.Money => 500 then
    ply.Money = ply.Money - 500
    ply:GiveAmmo(600,"airboatgun")
    else
    ply:PrintMessage(HUD_PRINTTALK, "Sorry, you need 500$ for this!")
    end 
    end
    
    I'm not gonna go into detail but look for something that involves that if I couldn't help then sorry :\
    Reply With Quote Edit / Delete Reply United States Show Events Dumb Dumb x 1 (list)

  6. Post #6
    RTM xBEASTx's Avatar
    September 2010
    563 Posts
    That is really not very useful.
    Stop taking a stab in the dark people and hoping to hit.

    This is a really simple thing to do if you just think about it logically.

    As I said I'll talk on steam tomorrow and do this for you.
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Friendly Friendly x 1 (list)

  7. Post #7
    Insane21M's Avatar
    March 2011
    58 Posts
    That is really not very useful.
    Stop taking a stab in the dark people and hoping to hit.

    This is a really simple thing to do if you just think about it logically.

    As I said I'll talk on steam tomorrow and do this for you.
    Thanks buddy :)

    Moderator can close this.

  8. Post #8
    King Flawless's Avatar
    July 2010
    1,625 Posts
    That is really not very useful.
    Stop taking a stab in the dark people and hoping to hit.

    This is a really simple thing to do if you just think about it logically.

    As I said I'll talk on steam tomorrow and do this for you.
    Why are you not posting the code publicly?
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Agree Agree x 1Winner Winner x 1 (list)

  9. Post #9
    RTM xBEASTx's Avatar
    September 2010
    563 Posts
    Look in main.lua
    Around Line: 1165

    I will do it for you tomorrow but if you take a look you should be able to work it out.

  10. Post #10
    Insane21M's Avatar
    March 2011
    58 Posts
    Look in main.lua
    Around Line: 1165

    I will do it for you tomorrow but if you take a look you should be able to work it out.
    Thanks I figured it out. For those who want to know how, go to main.lua (Gamemode --> darkrp --> gamemode --> main.lua) then go to line 1165 and you'll see the 3 types of ammo. All you have to do is add new lines for all the custom Mad Cow ammo.

  11. Post #11

    May 2011
    1 Posts
    is there a way you can post the edited part of the code?
    Reply With Quote Edit / Delete Reply Windows Vista United States Show Events Dumb Dumb x 1 (list)