Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ITEM.Name = 'Health Boost 1'
- ITEM.Price = 1
- ITEM.Material = 'Put something here'
- ITEM.NoPreview = true
- function ITEM:OnEquip(ply)
- ply:SetHealth(125)
- end
- function ITEM:OnHolster(ply)
- ply:SetHealth(100)
- end
- ITEM.Name = 'Health Boost 2'
- ITEM.Price = 1
- ITEM.Material = 'Put something here'
- ITEM.NoPreview = true
- function ITEM:OnBuy(ply)
- if ply:PS_HasItem(hp1) then
- return true
- else
- ply:SendLua([[chat.AddText(Color(0,0,200), "You need Health Boost 1 to purchase this item!")]])
- return false
- end
- end
- function ITEM:OnEquip(ply)
- if ply:PS_HasItem(hp1) then
- ply:SetHealth(150)
- else
- ply:SendLua([[chat.AddText(Color(0,0,200), "You need Health Boost 1 to Equip this item!")]])
- ply:SetHealth(100)
- end
- end
- function ITEM:OnHolster(ply)
- ply:SetHealth(100)
- end
- ITEM.Name = 'Gravity Upgrade 1'
- ITEM.Price = 1
- ITEM.Material = 'Put something here'
- ITEM.NoPreview = true
- function ITEM:OnEquip(ply)
- ply:SetGravity(0.75)
- end
- function ITEM:OnHolster(ply)
- ply:SetGravity(1)
- end
- ITEM.Name = 'Gravity Upgrade 2'
- ITEM.Price = 1
- ITEM.Material = 'Put something here'
- ITEM.NoPreview = true
- function ITEM:OnBuy(ply)
- if ply:PS_HasItem(gr1) then
- return true
- else
- ply:SendLua([[chat.AddText(Color(0,0,200), "You need Gravity Upgrade 1 to purchase this item!")]])
- return false
- end
- function ITEM:OnEquip(ply)
- if ply:PS_HasItem(gr1) then
- ply:SetGravity(0.5)
- else
- ply:SendLua([[chat.AddText(Color(0,0,200), "You need Gravity Upgrade 1 to Equip this item!")]])
- ply:SetGravity(1)
- end
- end
- function ITEM:OnHolster(ply)
- ply:SetGravity(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement