CapsAdmin

Untitled

Nov 15th, 2013
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. hook.Add("KeyPress", "aeoBeam", function(ply, key)
  2.     if key == IN_ATTACK2 then
  3.         local wep = ply:GetActiveWeapon()
  4.         if wep:IsValid() and wep:GetClass() == "weapon_357" then
  5.             ply:Cexec("pac_event somename 1")
  6.         end
  7.     end
  8. end)
  9.  
  10. hook.Add("KeyRelease", "aeoBeam", function(ply, key)
  11.     if key == IN_ATTACK2 then
  12.         local wep = ply:GetActiveWeapon()
  13.         if wep:IsValid() and wep:GetClass() == "weapon_357" then
  14.             ply:Cexec("pac_event somename 0")
  15.         end
  16.     end
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment