Advertisement
Guest User

Untitled

a guest
May 28th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. function SWEP:PrimaryAttack()
  2.  
  3. local ply = LocalPlayer()
  4.  
  5. if !ply:Team() == ROLE_TRAITOR and ply:GetActiveWeapon():GetClass() == "weapon_zm_moltov" then
  6. ply:ChatPrint("You cannot throw this weapon!")
  7. return
  8. end
  9. self:SetNextPrimaryFire(CurTime() + self.Primary.Delay)
  10.  
  11. if GetRoundState() == ROUND_PREP and GetConVar("ttt_no_nade_throw_during_prep"):GetBool() then
  12. return
  13. end
  14.  
  15. self:PullPin()
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement