Garry's Mod

Garry's Mod

172 个评价
Armor & Health NPC
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: NPC
插件标签: 快乐, 角色扮演
文件大小
发表于
更新日期
2.360 KB
2014 年 10 月 25 日 上午 8:06
2014 年 10 月 26 日 上午 12:37
4 项改动说明 ( 查看 )

订阅以下载
Armor & Health NPC

描述
This is a armor and health selling npc. That only works for Darkrp 2.5.x.

Create a new lua file in garrysmod/lua/autorun/ name it example armorhealthnpctable and then put the code below into it.
ArmorHealth = {} -- Model path ArmorHealth.Models = "models/odessa.mdl" -- Health cost ArmorHealth.healthcost = 120 -- Amount of health given ArmorHealth.healthgive = 100 -- Armor Cost ArmorHealth.Armorcost = 120 -- Amount of armor given ArmorHealth.Armorgive = 100 -- Spawn a npc that can be moved. If false then it won't ArmorHealth.AutoSpawnNpc = false -- NPC Spawn Pos will work if above is true ArmorHealth.npc_pos = Vector( -1780, -677, -148 ) -- NPC Spawn Angle will work if autospawnnpc = true ArmorHealth.npc_ang = Angle( 0, -90, 0 )



Want me to add something more to it? Just say it in the comments or add me.
9 条留言
wahoo 2017 年 4 月 25 日 上午 5:35 
it does not work I can not spawn it
^1Brandon 2015 年 11 月 20 日 下午 7:23 
when i spawn it it show no model why ?
DankNessGotMemes 2015 年 11 月 13 日 下午 6:34 
I can assure you theres no backdoor guys its completely safe for a server it was used on a server that had 30+ players most days and if it had a back door pretty sure they wouldn't have used it.
Pancake  [作者] 2015 年 11 月 12 日 下午 6:15 
No it doesn't.
Mxrk 2015 年 11 月 8 日 上午 7:32 
Has a backdoor in this script.
Pancake  [作者] 2015 年 4 月 30 日 下午 2:37 
You set the spawn Position
bigmanting 2015 年 4 月 25 日 下午 11:34 
where does the NPC spawn?
Pancake  [作者] 2014 年 10 月 26 日 上午 1:48 
Checkout the video
chicarito101 2014 年 10 月 25 日 下午 6:04 
what is it like?!