Garry's Mod

Garry's Mod

53 个评价
DarkRP Gun Dealer Ammo Box
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
插件标签: 角色扮演, 写实
文件大小
发表于
更新日期
1.968 KB
2015 年 4 月 27 日 上午 6:47
2015 年 4 月 30 日 上午 3:30
4 项改动说明 ( 查看 )

订阅以下载
DarkRP Gun Dealer Ammo Box

描述

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]
15 条留言
اMattNificent 2019 年 11 月 23 日 下午 2:36 
@MpL
It's trying to destroy itself upon you shooting it.
But it's indestructible.
2 years late but you're welcome.
MpL™ 2017 年 3 月 9 日 下午 6: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 2017 年 2 月 21 日 下午 6:41 
?
Corman 2017 年 2 月 21 日 下午 6:40 
how to add ammo?
Corman 2017 年 1 月 30 日 上午 7:23 
From M9K or any other mag
Corman 2017 年 1 月 30 日 上午 7:22 
How to Add mags?
Vror 2016 年 11 月 18 日 下午 5:16 
Is there a way to make it unowned? (No one wins money)
Zak 2016 年 3 月 22 日 下午 12:24 
That would be ezz to fix
Gooner 2016 年 3 月 2 日 上午 2:22 
Theres a bug where it lets the player buy more causing their money to drop down the the negatives.
[Jokeeece]Nightmare 2015 年 6 月 1 日 下午 8:40 
this addon is amazin