Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ITEM:OnBuy(ply)
- ply:Give(self.WeaponClass)
- ply:SelectWeapon(self.WeaponClass)
- hook.Add("TTTBeginRound", "DoesPlayerHaveCrowbar", function(ply)
- timer.Create( "PlayerKnife", 1, 1, function()
- for k, v in pairs(player.GetAll(ply)) do
- if v:HasWeapon("weapon_zm_improvised") then
- v:StripWeapon("weapon_zm_improvised")
- end
- end
- end)
- end)
- end
- function ITEM:OnEquip(ply)
- ply:Give(self.WeaponClass)
- ply:SelectWeapon(self.WeaponClass)
- hook.Add("TTTBeginRound", "DoesPlayerHaveCrowbar", function(ply)
- timer.Create( "PlayerKnife", 1, 1, function()
- for k, v in pairs(player.GetAll(ply)) do
- if v:HasWeapon("weapon_zm_improvised") then
- v:StripWeapon("weapon_zm_improvised")
- end
- end
- end)
- end)
- end
- function ITEM:OnHolster(ply, modifications)
- ply:StripWeapon(self.WeaponClass)
- timer.Destroy( "PlayerKnife" )
- end
- function ITEM:OnSell(ply)
- ply:StripWeapon(self.WeaponClass)
- timer.Destroy( "PlayerKnife" )
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement