Garry's Mod

Garry's Mod

53 hodnocení
DarkRP Gun Dealer Ammo Box
   
Ocenit
Přidat do oblíbených
Oblíbeno
Odebrat z oblíbených
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Roleplay, Realism
Velikost souboru
Přidáno
Aktualizováno
1.968 KB
27. dub. 2015 v 6.47
30. dub. 2015 v 3.30
Poznámky ke změnám (4) – zobrazit

Klikněte na „Odebírat“ pro stažení položky
DarkRP Gun Dealer Ammo Box

Popis

This is a very simple, indestructible vendor which will sell clips to ammo of literally any type automatically for $[20-200] for Gun Dealer type jobs.

Features
  • /setprice # will set the cost (minimum of 20 and max of 200).
  • If admin spawned, first player to touch it, owns it automatically.
  • Can be physgunned into place by the owner and can only be destroyed by the owner!
  • Means you can safely leave it anywhere without it getting blown up!

Entities code for DarkRP attached below!
---------------------------------------------------------------------------
DarkRP.createEntity("Ammo Box Vendor", {
ent = "eoti_ammo_box",
model = "models/items/ammocrate_smg1.mdl",
price = 600,
max = 1,
cmd = "ammobox",
allowed = {TEAM_GUN},
category = "ammo",
sortOrder = 100
})
---------------------------------------------------------------------------

Known Glitches: Animations will not work at all, if anyone knows the sequence codes for ammo boxes, send them to me!

PLEASE RATE, SUBSCRIBE AND CHECK OUT MY FANTASY RP MODS![facepunch.com]

In light of recent events, I would rather take donations through Patreon which I have set up for anyone willing to donate to allow me to continue making addons non-stop.

PATREON LINK[www.patreon.com]
Počet komentářů: 15
76561198159809553 23. lis. 2019 v 14.36 
@MpL
It's trying to destroy itself upon you shooting it.
But it's indestructible.
2 years late but you're welcome.
MpL™ 9. bře. 2017 v 18.16 
Good addons, really !!

But look at this:

[DarkRP Gun Dealer Ammo Box] lua/entities/eoti_ammo_box/init.lua:87: attempt to call method 'Destruct' (a nil value)
1. unknown - lua/entities/eoti_ammo_box/init.lua:87
2. FireBullets - [C]:-1
3. CSShootBullet - gamemodes/darkrp/entities/weapons/weapon_cs_base2/shared.lua:234
4. unknown - gamemodes/darkrp/entities/weapons/weapon_cs_base2/shared.lua:194


(When we try destroy the box)

Sorry for my bad English, I'm French.
Corman 21. úno. 2017 v 18.41 
?
Corman 21. úno. 2017 v 18.40 
how to add ammo?
Corman 30. led. 2017 v 7.23 
From M9K or any other mag
Corman 30. led. 2017 v 7.22 
How to Add mags?
Vror 18. lis. 2016 v 17.16 
Is there a way to make it unowned? (No one wins money)
Zak 22. bře. 2016 v 12.24 
That would be ezz to fix
Gooner 2. bře. 2016 v 2.22 
Theres a bug where it lets the player buy more causing their money to drop down the the negatives.
[Jokeeece]Nightmare 1. čvn. 2015 v 20.40 
this addon is amazin