Advertisement
Guest User

Untitled

a guest
Apr 19th, 2015
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. ITEM.Name = 'Stunstick'
  2. ITEM.Price = 200
  3. ITEM.Model = 'models/weapons/stunstick.mdl'
  4. ITEM.WeaponClass = 'weapon_stunstick'
  5.  
  6. function ITEM:OnBuy(ply)
  7. hook.Add( "PlayerSpawn", "WeaponGive-" .. self.WeaponClass .. "-" .. ply:UniqueID() , function( pl )
  8. pl:Give( self.WeaponClass )
  9. end
  10. end
  11.  
  12. function ITEM:OnSell(ply)
  13. hook.Remove( "PlayerSpawn", "WeaponGive-" .. self.WeaponClass .. "-" .. ply:UniqueID() )
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement