Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ENT.Type = "nextbot"
- ENT.Base = "base_nextbot"
- ENT.PrintName = "Shopkeeper"
- ENT.Category = "DarkRP"
- ENT.Spawnable = true
- function ENT:Initialize()
- self:SetModel("models/props_c17/door01_left.mdl")
- self:SetSolid(SOLID_BBOX)
- self:SetCollisionGroup(COLLISION_GROUP_WEAPON)
- self:SetMoveType(MOVETYPE_NONE)
- self:SetHealth(100)
- self:AddFlags(FL_OBJECT)
- self:SetCustomCollisionCheck(true)
- end
- function ENT:AcceptInput(name, activator, caller, data)
- if name == "Use" and IsValid(caller) and caller:IsPlayer() then
- caller:addMoney(100)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement