local function chk( cmd, key ) return bit.band( cmd:GetButtons(), key ) ~= 0 end local function add( cmd, key ) cmd:SetButtons( bit.bor( cmd:GetButtons(), key ) ) end local puntpackets = 0 hook.Add( 'CreateMove', 'propkill', function( cmd ) local w = LocalPlayer():GetActiveWeapon() if w:GetClass() == 'weapon_physgun' then if chk( cmd, IN_ATTACK ) then puntpackets = ( 1 / engine.TickInterval() ) * 0.05 elseif puntpackets > 0 then cmd:SetMouseWheel( 0x7F ) // mousewheel size = 1 byte add( cmd, IN_ATTACK ) puntpackets = puntpackets - 1 end else puntpackets = 0 end end )