Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ITEM.Name = 'Stunstick'
- ITEM.Price = 200
- ITEM.Model = 'models/weapons/stunstick.mdl'
- ITEM.WeaponClass = 'weapon_stunstick'
- function ITEM:OnBuy(ply)
- hook.Add( "PlayerSpawn", "WeaponGive-" .. self.WeaponClass .. "-" .. ply:UniqueID() , function( pl )
- pl:Give( self.WeaponClass )
- end
- end
- function ITEM:OnSell(ply)
- hook.Remove( "PlayerSpawn", "WeaponGive-" .. self.WeaponClass .. "-" .. ply:UniqueID() )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement