Garry's Mod
172 人が評価
Armor & Health NPC
   
アワード
お気に入り
お気に入り
お気に入りから削除
Content Type: Addon
Addon Type: NPC
Addon Tags: Fun, Roleplay
ファイルサイズ
投稿日
更新日
2.360 KB
2014年10月25日 8時06分
2014年10月26日 0時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日 19時23分 
when i spawn it it show no model why ?
DankNessGotMemes 2015年11月13日 18時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日 18時15分 
No it doesn't.
Mxrk 2015年11月8日 7時32分 
Has a backdoor in this script.
Pancake  [作成者] 2015年4月30日 14時37分 
You set the spawn Position
bigmanting 2015年4月25日 23時34分 
where does the NPC spawn?
Pancake  [作成者] 2014年10月26日 1時48分 
Checkout the video
chicarito101 2014年10月25日 18時04分 
what is it like?!