• Mad Cow Weapons / DarkRP Ammo
    10 replies, posted
  • Avatar of Insane21M
  • 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: [url]http://steamcommunity.com/id/InsaneMPGH[/url]
  • Avatar of cis.joshb
  • Go into mad cow's weapons and change the ammo to smg1 for rifles and pistol for pistols and smgs.
  • Avatar of Insane21M
  • [QUOTE=cis.joshb;28892055]Go into mad cow's weapons and change the ammo to smg1 for rifles and pistol for pistols and smgs.[/QUOTE] Could you please explain a little more indepth?
  • Avatar of RTM xBEASTx
  • [QUOTE=cis.joshb;28892055]Go into mad cow's weapons and change the ammo to smg1 for rifles and pistol for pistols and smgs.[/QUOTE] 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.
  • Avatar of jrj996
  • 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 [lua] 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 [/lua] I'm not gonna go into detail but look for something that involves that if I couldn't help then sorry :\
  • Avatar of RTM xBEASTx
  • 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.
  • Avatar of Insane21M
  • [QUOTE=RTM xBEASTx;28899136]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.[/QUOTE] Thanks buddy :) Moderator can close this.
  • Avatar of King Flawless
  • [QUOTE=RTM xBEASTx;28899136]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.[/QUOTE] Why are you not posting the code publicly?
  • Avatar of RTM xBEASTx
  • Look in [B]main.lua[/B] Around [B]Line: 1165[/B] I will do it for you tomorrow but if you take a look you should be able to work it out.
  • Avatar of Insane21M
  • [QUOTE=RTM xBEASTx;28916856]Look in [B]main.lua[/B] Around [B]Line: 1165[/B] I will do it for you tomorrow but if you take a look you should be able to work it out.[/QUOTE] 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.