Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. ITEM.name = "Stupid Shit"
  2. ITEM.desc = "A Lottey Ticketttttttt GIVE ARROWS CUNT"
  3. ITEM.model = "models/props_junk/garbage_carboard002a.mdl"
  4. ITEM.price = 200
  5. ITEM.functions._use = {
  6. name = "Use",
  7. icon = "icon16/add.png",
  8. onRun = function(item)
  9. local client = item.player
  10. local char = client:getChar()
  11. client:GiveAmmo(200, "XBowBolt", true)
  12. client:EmitSound("items/ammo_pickup.wav")
  13. client:notify("+200 Arrows")
  14. print(HpwRewrite)
  15. client:EmitSound("items/battery_pickup.wav")
  16. local complete, reason = HpwRewrite:PlayerGiveLearnableSpell(client, item.name)
  17. if not complete then
  18. HpwRewrite:DoNotify(item.player, reason or "Unknown error!")
  19. return false
  20. end
  21.  
  22. return true
  23. --item.player:ScreenFade(1, Color(255, 255, 255, 255), 3, 0)
  24.  
  25. return true
  26. end,
  27. onCanRun = function(item)
  28. return (!item.entity or !IsValid(item.entity))
  29. end
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement