Advertisement
code_gs

Untitled

Jan 19th, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. ITEM.Name = 'Health Boost 1'
  2. ITEM.Price = 1
  3. ITEM.Material = 'Put something here'
  4. ITEM.NoPreview = true
  5.  
  6. function ITEM:OnEquip(ply)
  7. ply:SetHealth(125)
  8. end
  9.  
  10. function ITEM:OnHolster(ply)
  11. ply:SetHealth(100)
  12. end
  13.  
  14.  
  15.  
  16. ITEM.Name = 'Health Boost 2'
  17. ITEM.Price = 1
  18. ITEM.Material = 'Put something here'
  19. ITEM.NoPreview = true
  20.  
  21. function ITEM:OnBuy(ply)
  22. if ply:PS_HasItem(hp1) then
  23. return true
  24. else
  25. ply:SendLua([[chat.AddText(Color(0,0,200), "You need Health Boost 1 to purchase this item!")]])
  26. return false
  27. end
  28. end
  29.  
  30. function ITEM:OnEquip(ply)
  31. if ply:PS_HasItem(hp1) then
  32. ply:SetHealth(150)
  33. else
  34. ply:SendLua([[chat.AddText(Color(0,0,200), "You need Health Boost 1 to Equip this item!")]])
  35. ply:SetHealth(100)
  36. end
  37. end
  38.  
  39. function ITEM:OnHolster(ply)
  40. ply:SetHealth(100)
  41. end
  42.  
  43.  
  44.  
  45.  
  46. ITEM.Name = 'Gravity Upgrade 1'
  47. ITEM.Price = 1
  48. ITEM.Material = 'Put something here'
  49. ITEM.NoPreview = true
  50.  
  51. function ITEM:OnEquip(ply)
  52. ply:SetGravity(0.75)
  53. end
  54.  
  55. function ITEM:OnHolster(ply)
  56. ply:SetGravity(1)
  57. end
  58.  
  59.  
  60.  
  61.  
  62. ITEM.Name = 'Gravity Upgrade 2'
  63. ITEM.Price = 1
  64. ITEM.Material = 'Put something here'
  65. ITEM.NoPreview = true
  66.  
  67. function ITEM:OnBuy(ply)
  68. if ply:PS_HasItem(gr1) then
  69. return true
  70. else
  71. ply:SendLua([[chat.AddText(Color(0,0,200), "You need Gravity Upgrade 1 to purchase this item!")]])
  72. return false
  73. end
  74.  
  75. function ITEM:OnEquip(ply)
  76. if ply:PS_HasItem(gr1) then
  77. ply:SetGravity(0.5)
  78. else
  79. ply:SendLua([[chat.AddText(Color(0,0,200), "You need Gravity Upgrade 1 to Equip this item!")]])
  80. ply:SetGravity(1)
  81. end
  82. end
  83.  
  84. function ITEM:OnHolster(ply)
  85. ply:SetGravity(1)
  86. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement